diff --git a/package.json b/package.json index 2fe4b86..ccd7bc5 100644 --- a/package.json +++ b/package.json @@ -12,14 +12,13 @@ "scripts": { "start": "astro dev", "build": "astro build", - "build:preview": "astro build && node ./src/server.mjs", + "build:preview": "astro build && node ./server.mjs", "publish:patch": "npm version patch && npm publish --access public", "publish:minor": "npm version minor && npm publish --access public", "deploy": "astro build && scp -r dist ayo@ayco.io:~/cozy/" }, "devDependencies": { - "astro": "^4.12.2", - "fastify-cli": "^6.3.0" + "astro": "^4.12.2" }, "dependencies": { "@astrojs/node": "^8.3.2", diff --git a/src/server.mjs b/server.mjs similarity index 85% rename from src/server.mjs rename to server.mjs index 1890e3f..7c431a5 100644 --- a/src/server.mjs +++ b/server.mjs @@ -2,7 +2,7 @@ import Fastify from 'fastify'; import fastifyMiddie from '@fastify/middie'; import fastifyStatic from '@fastify/static'; import { fileURLToPath } from 'node:url'; -import { handler as ssrHandler } from '../dist/server/entry.mjs'; +import { handler as ssrHandler } from './dist/server/entry.mjs'; const app = Fastify({ logger: true });