diff --git a/packages/website/next-env.d.ts b/packages/website/next-env.d.ts index 4f11a03dc..40c3d6809 100644 --- a/packages/website/next-env.d.ts +++ b/packages/website/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. diff --git a/packages/website/next.config.js b/packages/website/next.config.js index 9b88d4096..08d77937f 100644 --- a/packages/website/next.config.js +++ b/packages/website/next.config.js @@ -5,7 +5,7 @@ const withVanillaExtract = createVanillaExtractPlugin({ tests: /\.css$/ }); /** @type {import('next').NextConfig} */ const nextConfig = { ...withVanillaExtract({ - webpack: (config, { isServer }) => { + webpack: (config) => { config.module.rules.push( { test: /\.glsl$/, @@ -17,17 +17,6 @@ const nextConfig = { }, ); - // if (isServer) { - // writeFileSync( - // 'public/assets/versions.json', - // JSON.stringify( - // readdirSync('docs/changelogs').map((file) => - // file.replace('.md', ''), - // ), - // ), - // ); - // } - return config; }, }), diff --git a/packages/website/types/glsl.d.ts b/packages/website/src/types/glsl.d.ts similarity index 100% rename from packages/website/types/glsl.d.ts rename to packages/website/src/types/glsl.d.ts diff --git a/packages/website/types/urlon.d.ts b/packages/website/src/types/urlon.d.ts similarity index 100% rename from packages/website/types/urlon.d.ts rename to packages/website/src/types/urlon.d.ts diff --git a/packages/website/tsconfig.json b/packages/website/tsconfig.json index 4082f16a5..95694aa6c 100644 --- a/packages/website/tsconfig.json +++ b/packages/website/tsconfig.json @@ -1,3 +1,14 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "compilerOptions": { + "plugins": [ + { + "name": "next" + } + ] + }, + "include": [ + "src/**/*", + "dist/website/types/**/*.ts" + ] }