diff --git a/apps/web/src/pages/landing.tsx b/apps/web/src/pages/landing.tsx index 28d84c05..39d4d3c2 100644 --- a/apps/web/src/pages/landing.tsx +++ b/apps/web/src/pages/landing.tsx @@ -11,7 +11,7 @@ export const Landing = () => (
- + {process.env.EXPERIMENTAL_SCENE ? : null} diff --git a/apps/web/src/web.d.ts b/apps/web/src/web.d.ts index 7f7c5cb9..cfd5949a 100644 --- a/apps/web/src/web.d.ts +++ b/apps/web/src/web.d.ts @@ -1,7 +1,9 @@ /// declare type WebEnv = { - NODE_ENV?: 'development' | 'production' + NODE_ENV: 'development' | 'production' + /** Add experimental scene to landing page, when set. */ + EXPERIMENTAL_SCENE: string | null } declare global { diff --git a/apps/web/webpack.config.ts b/apps/web/webpack.config.ts index 79b2e674..222be3aa 100644 --- a/apps/web/webpack.config.ts +++ b/apps/web/webpack.config.ts @@ -1,3 +1,4 @@ +/// import path from 'node:path' import { @@ -91,6 +92,7 @@ export default env(({ development, production }) => ({ }), new EnvironmentPlugin({ NODE_ENV: development ? 'development' : 'production', - }), + EXPERIMENTAL_SCENE: null, + } satisfies WebEnv), ], }))