Add Vite dev server proxy config and vite-proxy toggle script#25
Open
riccio82 wants to merge 1 commit intoOstico:masterfrom
Open
Add Vite dev server proxy config and vite-proxy toggle script#25riccio82 wants to merge 1 commit intoOstico:masterfrom
riccio82 wants to merge 1 commit intoOstico:masterfrom
Conversation
Add Apache reverse proxy configuration for Vite dev server (HMR, module resolution, source file serving) and a CLI helper script to toggle the proxy on/off inside the container. - vite-dev-proxy.inc: proxies @Vite, @fs, HMR websocket, public/, plugins/, node_modules/ to localhost:5173; sets VITE_DEV env var for PHP dev-mode asset injection; disables caching on proxied paths - 443-matecat.conf: adds commented-out IncludeOptional for the proxy - vite-proxy.sh: on/off/status CLI tool installed to /usr/local/bin - Dockerfile: copies and chmods the vite-proxy script Usage: vite-proxy on && yarn watch
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vite-dev-proxy.inc) for the Vite dev server — proxies HMR websocket,@vite,@fs,@react-refresh,public/,plugins/,node_modules/,vite-entries/tolocalhost:5173and setsVITE_DEVenv var for PHP dev-mode asset injection#IncludeOptionalline (commented out by default) to443-matecat.confvite-proxyCLI script installed to/usr/local/bin/for toggling the proxyUsage
Context
Part of the Webpack → Vite migration for MateCat. The proxy configuration was previously applied manually inside running containers. This PR bakes it into the Docker image so it survives rebuilds.