Vite server config for ddev/lando

Created on 16 October 2024, 6 months ago

Setting up the vite dev server is crucial for streamlined development.

When assets are built for vite, they go into the theme's /dist directory.

The Vite module reads the manifest.json file in there and rewrites library paths to /dist.

When the vite dev server is running, paths are not rewritten, and vite compiles source files when requested.

Vite should run inside the ddev/lando containers so that the Vite module can check if the server is running.

The site's settings needs to define the vite devServerUrl path.

There are a number of things that can trip this up. CORS, vite server origin, exposing ports, url aliases.

Provide vite configuration that works for ddev/lando, and documentation explaining how to set it up.

πŸ“Œ Task
Status

Active

Version

2.0

Component

Configuration

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