Skip to content

Instantly share code, notes, and snippets.

@mateusreis
Created August 27, 2025 17:22
Show Gist options
  • Save mateusreis/4ba2289fc381b2f41d2e19415a37b35f to your computer and use it in GitHub Desktop.
Save mateusreis/4ba2289fc381b2f41d2e19415a37b35f to your computer and use it in GitHub Desktop.
fix no path relativo dos projetos vite
1. adicione --base='./' no npm run build:
{
"name": "purple-moon-1",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build --base='./'",
"preview": "vite preview"
},
"devDependencies": {
"vite": "^6.3.4"
},
"dependencies": {
"three": "^0.174.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment