+5
-3
@@ -7,9 +7,12 @@ import laravel from 'laravel-vite-plugin';
|
||||
import { bunny } from 'laravel-vite-plugin/fonts';
|
||||
import { defineConfig, lazyPlugins } from 'vite-plus';
|
||||
|
||||
const qaBuild = process.env.INVESTMOZ_QA_BUILD === '1';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: lazyPlugins(() => [
|
||||
laravel({
|
||||
buildDirectory: qaBuild ? 'build-qa-opportunities' : 'build',
|
||||
input: ['resources/css/app.css', 'resources/js/app.tsx'],
|
||||
refresh: true,
|
||||
fonts: [
|
||||
@@ -24,9 +27,8 @@ export default defineConfig({
|
||||
presets: [reactCompilerPreset()],
|
||||
}),
|
||||
tailwindcss(),
|
||||
wayfinder({
|
||||
formVariants: true,
|
||||
}),
|
||||
// Reuse generated URLs in QA without booting the active Laravel environment.
|
||||
...(!qaBuild ? [wayfinder({ formVariants: true })] : []),
|
||||
]),
|
||||
server: {
|
||||
// Laravel's public/hot points to IPv4 loopback; bind Vite there explicitly.
|
||||
|
||||
Reference in New Issue
Block a user