Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot GET / when using viteConfigFile #149

Open
jeremy-rifkin opened this issue Oct 27, 2024 · 0 comments
Open

Cannot GET / when using viteConfigFile #149

jeremy-rifkin opened this issue Oct 27, 2024 · 0 comments

Comments

@jeremy-rifkin
Copy link

I'm running into an issue where if I configure vite-express with the following everything works perfectly when I load localhost

ViteExpress.config({
    inlineViteConfig: {
        root: "ui",
        base: "",
    },
});

But if I do the following localhost is a blank page with the text Cannot GET /

ViteExpress.config({
    viteConfigFile: "server/vite.config.js",
});

Where server/vite.config.js contains:

import { defineConfig } from "vite";

export default defineConfig({
    root: "ui",
    base: "",
});

Is this intended behavior? Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant