1.2 release breaks vite origin urls

Created on 8 August 2024, 5 months ago
Updated 23 August 2024, 4 months ago

Problem/Motivation

After updating to 1.2, vite origin urls (for the dev client) were going to https://MYSITE.ddev.site/MYSITE.ddev.site:5243/scss/styles.scss.

Using this commit is working: https://git.drupalcode.org/project/vite/-/commit/8eb18db92b4c2a250c352a5...

Looks like setting the slash prefix in the components path is causing the issue: https://git.drupalcode.org/project/vite/-/commit/9ccbaf4ba15c13314017024...

Steps to reproduce

DDEV setup: https://ddev.com/blog/working-with-vite-in-ddev/

Vite setup
```
server: {
host: '0.0.0.0',
strictPort: true,
port: 5243,
origin: 'https://MYSITE.ddev.site:5243',
},
```

devServerUrl = 'https://MYSITE.ddev.site:5243';

Proposed resolution

Roll back 9ccbaf4b and rework the patch.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024