-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.mjs
39 lines (39 loc) · 919 Bytes
/
next.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
headers: async () => [
{
source: "/:path*",
headers: [
{ key: "Access-Control-Allow-Credentials", value: "true" },
{ key: "Access-Control-Allow-Origin", value: "*" },
{
key: "Access-Control-Allow-Methods",
value: "GET,DELETE,PATCH,POST,PUT",
},
],
},
],
images: {
remotePatterns: [
{
protocol: "https",
hostname:
process.env.AWS_CLOUDFRONT_HOSTNAME ||
process.env.STORYBOOK_AWS_CLOUDFRONT_HOSTNAME,
port: "",
pathname: "/**",
},
],
},
rewrites: async () => {
return [
{
source: "/Sheet/:path*",
destination: `${process.env.NEXT_PUBLIC_AWS_CLOUDFRONT_URL}/Sheet/:path*`,
},
];
},
output: "standalone",
};
export default nextConfig;