feat: make server.mjs executable on unix

This commit is contained in:
Ayo Ayco 2024-07-27 11:56:33 +02:00
parent 990fa4201f
commit 0e05239059
2 changed files with 3 additions and 6774 deletions

6773
package-lock.json generated

File diff suppressed because it is too large Load diff

4
server.mjs Normal file → Executable file
View file

@ -1,3 +1,5 @@
#!/usr/bin/env node
import Fastify from 'fastify';
import fastifyMiddie from '@fastify/middie';
import fastifyStatic from '@fastify/static';
@ -13,4 +15,4 @@ await app
.register(fastifyMiddie);
app.use(ssrHandler);
app.listen({ port: 4321 });
app.listen({ port: 4321 });