Skip to content

Commit 842f626

Browse files
authored
fix: retrofit laravel-vite changes (#77)
* fix: retrofit laravel-vite changes * fix: remove unused import
1 parent 80d4667 commit 842f626

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

vite.config.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
import { defineConfig } from 'vite';
1+
import {defineConfig} from 'vite';
22
import laravel from 'laravel-vite-plugin';
33

44
export default defineConfig({
5+
6+
server: {
7+
cors: {
8+
origin: [
9+
/^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/,
10+
/^https?:\/\/.*\.test(:\d+)?$/, // Valet / Herd (SCHEME://*.test:PORT)
11+
],
12+
},
13+
},
514
plugins: [
615
laravel({
716
input: ['resources/css/app.css', 'resources/js/app.js'],

0 commit comments

Comments
 (0)