Skip to content

Commit

Permalink
Update vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
saskliutas committed Dec 17, 2024
1 parent 6cc8bf5 commit ff8d7cf
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/frontend/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,18 @@ export default defineConfig(({ mode }) => {
src: "./node_modules/@itwin/*/lib/public/*",
dest: ".",
},
{ src: "public/locales", dest: "locales" },
],
}),
monacoEditorPlugin.default({}),
monacoEditorPlugin.default({
languageWorkers: ["json"],
}),
],
server: {
port: 3000,
strictPort: true,
},
esbuild: {
supported: {
"top-level-await": true, // browsers can handle top-level-await features
},
build: {
target: "es2022",
},
css: {
preprocessorOptions: {
Expand Down Expand Up @@ -67,7 +66,6 @@ function verifyEnvironmentVariables(mode: string): void {
}

if ((env.DEPLOYMENT_TYPE !== "dev" && !env.OAUTH_CLIENT_ID) || env.OAUTH_CLIENT_ID === "spa-xxxxxxxxxxxxxxxxxxxxxxxxx") {
// eslint-disable-next-line no-console
throw new Error(`Environment variable OAUTH_CLIENT_ID has not been set. Instructions in .env file \
will guide you through the setup process.`);
}
Expand Down

0 comments on commit ff8d7cf

Please sign in to comment.