Saut Drupal 11.4.13 + maj modules contrib (scan p2, dernieres versions compatibles 11)
- core-recommended ^10.6||^11.4 -> 11.4.13, gin 5.0.16 + gin_toolbar 3.0.3 (admin), claro - purges D11: ban, actions_permissions, seven, adminimal_theme, audiofield, bulkdelete, content_lock_timeout, admin_toolbar_links_access_filter, contact (sync + profil starterkit) - path_alias_xt -> dev-2.x; patch autocomplete_deluxe re-rolle pour 2.2.0; allow-plugins += symfony/runtime - config/sync: normalisations D11 + purges (cex propre, config:status clean en local sur dump stage) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -33,18 +33,18 @@ titles:
|
||||
titles_hmr:
|
||||
header: true
|
||||
js:
|
||||
http://localhost:5173/assets/js/titles.js:
|
||||
https://localhost:5173/assets/js/titles.js:
|
||||
type: external
|
||||
attributes:
|
||||
type: module
|
||||
|
||||
vitehmr:
|
||||
js:
|
||||
http://localhost:5173/@vite/client:
|
||||
https://localhost:5173/@vite/client:
|
||||
type: external
|
||||
attributes:
|
||||
type: module
|
||||
http://localhost:5173/assets/js/main.js:
|
||||
https://localhost:5173/assets/js/main.js:
|
||||
type: external
|
||||
attributes:
|
||||
type: module
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
import { readFileSync } from 'node:fs'
|
||||
|
||||
// Certificat mkcert wildcard du reverse-proxy (SAN: localhost, 127.0.0.1,
|
||||
// *.localhost, ... trusté par la CA locale) : permet de servir le dev server
|
||||
// en HTTPS sans toucher à la config Traefik.
|
||||
const TLS_CERT = fileURLToPath(new URL('../../../../../../reverse-proxy/certs/wildcard.localhost.pem', import.meta.url))
|
||||
const TLS_KEY = fileURLToPath(new URL('../../../../../../reverse-proxy/certs/wildcard.localhost-key.pem', import.meta.url))
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
@@ -29,15 +36,32 @@ export default defineConfig({
|
||||
host: 'localhost',
|
||||
port: 5173,
|
||||
strictPort: true,
|
||||
// HTTPS obligatoire depuis la migration Traefik : la page Drupal est
|
||||
// servie en https://leshed.localhost, un dev server en http://localhost:5173
|
||||
// serait bloqué en mixed content (assets + WebSocket HMR). On réutilise
|
||||
// le certificat mkcert de reverse-proxy (SAN localhost/127.0.0.1) :
|
||||
// aucun changement de config Traefik nécessaire.
|
||||
https: {
|
||||
cert: readFileSync(TLS_CERT),
|
||||
key: readFileSync(TLS_KEY),
|
||||
},
|
||||
// Vite 5.4 crée un serveur HTTP/2 (createSecureServer) dès que `https`
|
||||
// est défini, sauf si `proxy` est présent — et HTTP/2 ne supporte pas
|
||||
// l'upgrade WebSocket : le HMR (wss://localhost:5173) serait refusé
|
||||
// (404 / close 1006). Un `proxy: {}` vide force le serveur HTTPS en
|
||||
// HTTP/1.1 (node:https) sans changer le comportement des requêtes.
|
||||
proxy: {},
|
||||
// Since Vite 5.4.12 (CVE-2025-24010) CORS is disabled by default.
|
||||
// Explicitly allow the origin(s) that serve the Drupal pages (vhost).
|
||||
// Explicitly allow the origin(s) that serve the Drupal pages (vhosts HTTPS).
|
||||
cors: {
|
||||
origin: [/^https?:\/\/dev\.leshed\.fr(:\d+)?$/],
|
||||
origin: [/^https:\/\/leshed\.localhost(:\d+)?$/, /^https:\/\/dev\.leshed\.fr(:\d+)?$/],
|
||||
},
|
||||
// Absolute base URL used by Vite to build asset/HMR URLs.
|
||||
origin: 'http://localhost:5173',
|
||||
origin: 'https://localhost:5173',
|
||||
hmr: {
|
||||
host: 'localhost',
|
||||
protocol: 'wss',
|
||||
clientPort: 5173,
|
||||
},
|
||||
watch: {
|
||||
usePolling: true,
|
||||
|
||||
Reference in New Issue
Block a user