facehash avatars
This commit is contained in:
@@ -3,13 +3,13 @@ import { defineConfig } from 'vite'
|
||||
import tsConfigPaths from 'vite-tsconfig-paths'
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
export default defineConfig({
|
||||
export default defineConfig(({ mode }) => ({
|
||||
server: {
|
||||
port: 3000,
|
||||
allowedHosts: ["dev.flexxon.app", "flexxon.app"]
|
||||
},
|
||||
ssr: {
|
||||
noExternal: true,
|
||||
noExternal: mode === 'production' ? true : ['facehash'],
|
||||
},
|
||||
plugins: [
|
||||
tsConfigPaths({
|
||||
@@ -20,4 +20,4 @@ export default defineConfig({
|
||||
}),
|
||||
react()
|
||||
]
|
||||
})
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user