Skip to content

Commit

Permalink
Remove support for custom base url
Browse files Browse the repository at this point in the history
ref #454
  • Loading branch information
frostburn committed May 16, 2024
1 parent a3563bd commit b87f369
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,3 @@ coverage
*.njsproj
*.sln
*.sw?

# Local vite config
vite.config.ts
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@ See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

Create a local copy of vite config.
```sh
cp vite.config.ts.template vite.config.ts
```

Install project.
```sh
npm install
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const audio = useAudioStore()
// == URL path handling ==
/**
* Strip away base path such as /scaleworkshop-dev/
* Strip away base path "/"
*/
function getPath(url: URL) {
return url.pathname.slice(import.meta.env.BASE_URL.length)
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts.template → vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ export default defineConfig({
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
base: "/scaleworkshop-dev/"
}
})

0 comments on commit b87f369

Please sign in to comment.