Skip to content

Commit b0951c4

Browse files
committed
fix(examples): remove unnecessary dotenv import from WorkOS example
Vite automatically loads .env files, so the manual dotenv.config() call is unnecessary and causes a build failure since dotenv is not installed as a dependency.
1 parent a13f1e1 commit b0951c4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

examples/react/start-workos/vite.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { defineConfig } from 'vite';
22
import tsConfigPaths from 'vite-tsconfig-paths';
33
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
44
import viteReact from '@vitejs/plugin-react';
5-
import * as dotenv from 'dotenv';
6-
7-
// Load .env file
8-
dotenv.config();
95

106
export default defineConfig({
117
server: {

0 commit comments

Comments
 (0)