mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
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>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"build:jpg": "node scripts/webp-to-jpg.js",
|
||||
"build:next": "next build",
|
||||
"deploy": "npm run pages:build && wrangler pages deploy",
|
||||
"dev": "next dev",
|
||||
"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"
|
||||
|
||||
Reference in New Issue
Block a user