2024-07-19 09:10:46 -05:00
|
|
|
/**
|
|
|
|
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
|
|
|
|
* for Docker builds.
|
|
|
|
*/
|
2025-01-13 16:36:01 -06:00
|
|
|
import './src/env.js';
|
2024-07-20 13:00:27 -05:00
|
|
|
|
2024-07-19 09:10:46 -05:00
|
|
|
/** @type {import("next").NextConfig} */
|
2024-07-20 13:00:27 -05:00
|
|
|
const config = {
|
2025-01-13 16:36:01 -06:00
|
|
|
output: 'standalone',
|
2024-07-20 13:00:27 -05:00
|
|
|
};
|
2024-07-19 09:10:46 -05:00
|
|
|
|
|
|
|
export default config;
|
2025-01-13 16:36:01 -06:00
|
|
|
/**
|
|
|
|
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
|
|
|
|
* for Docker builds.
|
|
|
|
*/
|
|
|
|
//await import("./src/env.js");
|
|
|
|
|
|
|
|
//const cspHeader = `
|
|
|
|
//default-src 'self';
|
|
|
|
//script-src 'self' 'unsafe-eval' 'unsafe-inline';
|
|
|
|
//style-src 'self' 'unsafe-inline';
|
|
|
|
//img-src 'self' blob: data:;
|
|
|
|
//font-src 'self';
|
|
|
|
//object-src 'none';
|
|
|
|
//base-uri 'self';
|
|
|
|
//form-action 'self';
|
|
|
|
//frame-ancestors 'none';
|
|
|
|
//upgrade-insecure-requests;
|
|
|
|
//`
|
|
|
|
|
|
|
|
//[>* @type {import("next").NextConfig} <]
|
|
|
|
//const config = {
|
|
|
|
//async headers() {
|
|
|
|
//return [
|
|
|
|
//{
|
|
|
|
//source: "/(.*)",
|
|
|
|
//headers: [
|
|
|
|
//{
|
|
|
|
//key: "Content-Security-Policy",
|
|
|
|
//value: cspHeader.replace(/\n/g, ''),
|
|
|
|
//},
|
|
|
|
//],
|
|
|
|
//},
|
|
|
|
//];
|
|
|
|
//},
|
|
|
|
//};
|
|
|
|
|
|
|
|
//export default config;
|
|
|
|
|