40 lines
888 B
TypeScript
40 lines
888 B
TypeScript
// [TSM.ID].[11031972] — All Rights Reserved. Proprietary & Confidential.
|
|
import type { NextConfig } from "next";
|
|
import withPWAInit from "@ducanh2912/next-pwa";
|
|
|
|
const withPWA = withPWAInit({
|
|
dest: "public",
|
|
cacheOnFrontEndNav: false,
|
|
aggressiveFrontEndNavCaching: false,
|
|
reloadOnOnline: true,
|
|
disable: process.env.NODE_ENV === "development",
|
|
workboxOptions: {
|
|
disableDevLogs: true,
|
|
cleanupOutdatedCaches: true,
|
|
},
|
|
});
|
|
|
|
const nextConfig: NextConfig = {
|
|
turbopack: {},
|
|
basePath: '/vc',
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/(.*)',
|
|
headers: [
|
|
{
|
|
key: 'Cross-Origin-Opener-Policy',
|
|
value: 'same-origin',
|
|
},
|
|
{
|
|
key: 'Cross-Origin-Embedder-Policy',
|
|
value: 'credentialless',
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withPWA(nextConfig);
|