16 lines
313 B
TypeScript
16 lines
313 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const allowedOrigin = process.env.NEXT_ALLOWED_DEV_ORIGIN;
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
trailingSlash: false,
|
|
poweredByHeader: false,
|
|
};
|
|
|
|
if (allowedOrigin) {
|
|
nextConfig.allowedDevOrigins = [allowedOrigin];
|
|
}
|
|
|
|
export default nextConfig;
|