mirror of
https://github.com/iamlukethedev/Claw3D.git
synced 2026-08-14 00:58:04 +00:00
fix(docker): ship a runtime-safe Next config.
Replace the TypeScript Next config with an mjs file so the production container can start without trying to install TypeScript at runtime. Made-with: Cursor
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/server ./server
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
COPY --from=builder /app/next.config.ts ./next.config.ts
|
||||
COPY --from=builder /app/next.config.mjs ./next.config.mjs
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const securityHeaders = [
|
||||
{
|
||||
key: "Content-Security-Policy",
|
||||
@@ -48,7 +46,8 @@ if (process.env.NODE_ENV === "production") {
|
||||
});
|
||||
}
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
Reference in New Issue
Block a user