Skip to content

Proxy mode #27

@sineway

Description

@sineway

I run Vite as proxy of built-in php server:

import {defineConfig} from 'vite';
import fullReload from 'vite-plugin-full-reload';

export default defineConfig({
    server: {
        proxy: {
            '/': 'http://localhost:8080'
        }
    },
    plugins: [
        fullReload('*.php')
    ],
});

The problem: when I update PHP file, I see «page reload» message in the terminal, but no page reload happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions