Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions examples/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { setTimeout } from 'node:timers/promises'
import { env } from 'node:process'
import { setTimeout } from 'node:timers/promises'

import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'
Expand Down Expand Up @@ -27,10 +28,7 @@ export default defineConfig(async ({ command }) => {
}
})

const setupEnv = async (
endpoint: string,
isBuild: boolean,
): Promise<void> => {
const setupEnv = async (endpoint: string, isBuild: boolean): Promise<void> => {
env['SEAM_ENDPOINT'] ??= endpoint

if (env['SEAM_PUBLISHABLE_KEY'] == null) {
Expand All @@ -40,7 +38,7 @@ const setupEnv = async (
`> Using the default publishable key.
> Use your own by setting SEAM_PUBLISHABLE_KEY in your environment.
> Get one for free at https://console.seam.co/
`
`,
)
await setTimeout(2000)
}
Expand Down
Loading
Loading