Skip to content

Commit

Permalink
fix(dev): Do not change origin on proxy in dev (#9066)
Browse files Browse the repository at this point in the history
  • Loading branch information
dac09 authored Aug 31, 2023
1 parent 3a96be2 commit f0b3baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ export default function redwoodPluginVite(): PluginOption[] {
server: {
open: rwConfig.browser.open,
port: rwConfig.web.port,
host: rwConfig.web.host,
host: true, // Listen to all hosts
proxy: {
[rwConfig.web.apiUrl]: {
target: `http://${rwConfig.api.host}:${rwConfig.api.port}`,
changeOrigin: true,
changeOrigin: false,
// Remove the `.redwood/functions` part, but leave the `/graphql`
rewrite: (path) => path.replace(rwConfig.web.apiUrl, ''),
configure: (proxy) => {
Expand Down

0 comments on commit f0b3baf

Please sign in to comment.