Files
afilmory/apps/ssr/package.json
Innei c58835e35b feat: enhance SSR routing and development experience
- Updated the SSR routing to conditionally load development and production handlers based on the NODE_ENV variable.
- Introduced a new dev.ts file to handle requests in development mode, including asset proxying and HTML response generation.
- Removed the not-found.tsx file and streamlined the photoId route logic for better maintainability.
- Added support for Open Graph and Twitter meta tags in the production handler for improved SEO.
- Updated README with new S3 endpoint configuration.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-23 11:31:28 +08:00

33 lines
899 B
JSON

{
"name": "@afilmory/ssr",
"type": "module",
"version": "1.0.0",
"packageManager": "pnpm@10.12.1",
"description": "",
"author": "Innei",
"license": "ISC",
"main": "index.js",
"scripts": {
"build": "sh scripts/build.sh",
"build:jpg": "node scripts/webp-to-jpg.js",
"build:next": "next build",
"deploy": "npm run pages:build && wrangler pages deploy",
"dev": "next dev --turbo --port 1975",
"pages:build": "pnpm dlx @cloudflare/next-on-pages",
"preview": "npm run pages:build && wrangler pages dev",
"start": "next start"
},
"dependencies": {
"@afilmory/data": "workspace:*",
"linkedom": "0.18.11",
"react": "19.1.0",
"react-dom": "19.1.0"
},
"devDependencies": {
"@cloudflare/next-on-pages": "1.13.12",
"@types/node": "24.0.1",
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"next": "15.3.3"
}
}