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

Configurations for Vitejs #17

Open
kabir0x23 opened this issue Oct 26, 2022 · 0 comments
Open

Configurations for Vitejs #17

kabir0x23 opened this issue Oct 26, 2022 · 0 comments

Comments

@kabir0x23
Copy link

add the below code in the vite.config.js

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    proxy: {
        "/api": "http://localhost:5000",
    },

// to serve on the 3000 port  
    host: '0.0.0.0',
    port: 3000,
  },
  plugins: [react()],
})
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