Skip to content

Instantly share code, notes, and snippets.

@teerasej
Created January 3, 2024 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teerasej/bccf6ab23cfa0e0562e66cea0a9c2c3d to your computer and use it in GitHub Desktop.
Save teerasej/bccf6ab23cfa0e0562e66cea0a9c2c3d to your computer and use it in GitHub Desktop.
Config vite.config.ts to set the root of assets to the relative path
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: '/vite-react-app-deploy-lab/',
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment