mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: start of monorepo
This commit is contained in:
1 parent
14f39d71ac
commit
73c7bdf0c0
260 files changed
+1236
-1235
No files matched your search
@@ -0,0 +1,52 @@
|
||||
import { createVanillaExtractPlugin } from '@vanilla-extract/next-plugin';
|
||||
|
||||
const withVanillaExtract = createVanillaExtractPlugin({ tests: /\.css$/ });
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
...withVanillaExtract({
|
||||
webpack: (config, { isServer }) => {
|
||||
config.module.rules.push(
|
||||
{
|
||||
test: /\.glsl$/,
|
||||
type: 'asset/source',
|
||||
},
|
||||
{
|
||||
test: /\.proto$/,
|
||||
type: 'asset/source',
|
||||
},
|
||||
);
|
||||
|
||||
// if (isServer) {
|
||||
// writeFileSync(
|
||||
// 'public/assets/versions.json',
|
||||
// JSON.stringify(
|
||||
// readdirSync('docs/changelogs').map((file) =>
|
||||
// file.replace('.md', ''),
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// }
|
||||
|
||||
return config;
|
||||
},
|
||||
}),
|
||||
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: '/(.*)?',
|
||||
headers: [{ key: 'X-Frame-Options', value: 'DENY' }],
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
distDir: 'dist/website',
|
||||
reactStrictMode: true,
|
||||
|
||||
experimental: {
|
||||
workerThreads: false,
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in new issue
Block a user