Compare commits
2 Commits
feat/marke
...
ccacd16edb
| Author | SHA1 | Date | |
|---|---|---|---|
| ccacd16edb | |||
|
|
fdce9e4eb8 |
@@ -25,7 +25,7 @@ app.use("*", logger());
|
||||
app.use(
|
||||
"*",
|
||||
cors({
|
||||
origin: ["http://localhost:5173"],
|
||||
origin: (origin) => origin ?? "*",
|
||||
allowMethods: ["GET", "POST", "OPTIONS"],
|
||||
allowHeaders: ["Content-Type"],
|
||||
})
|
||||
|
||||
@@ -11,6 +11,7 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
host: true,
|
||||
// Le projet vit sur /mnt/c (disque Windows) mais Vite tourne dans WSL :
|
||||
// l'inotify natif ne reçoit pas les événements de fichiers Windows, donc le
|
||||
// HMR ne se déclenche jamais. Le polling règle ça de façon fiable.
|
||||
|
||||
Reference in New Issue
Block a user