-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: BASE_PATH by using caddy as web server.
vite config use experimental renderBuiltUrl.
- Loading branch information
Showing
4 changed files
with
44 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
# disable HTTPS | ||
auto_https off | ||
} | ||
|
||
:24900 { | ||
# CORS | ||
header { | ||
Access-Control-Allow-Headers * | ||
Access-Control-Allow-Credentials true | ||
Access-Control-Allow-Methods * | ||
Access-Control-Allow-Origin * | ||
defer | ||
} | ||
@options { | ||
method OPTIONS | ||
} | ||
respond @options 204 | ||
|
||
# Base path | ||
handle {$BASE_PATH:/}* { | ||
uri strip_prefix {$BASE_PATH:/} | ||
root * /srv | ||
file_server | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
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