Created
January 3, 2024 06:19
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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