Skip to content

Configurations for Vitejs  #17

@0xk4b1r

Description

@0xk4b1r

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()],
})

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