You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/05/16 14:48:30 UTC
[incubator-apisix-dashboard] branch next updated: Fix static files
url (#189)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git
The following commit(s) were added to refs/heads/next by this push:
new e61f824 Fix static files url (#189)
e61f824 is described below
commit e61f82456032f3c1c2cebb618c8ba0b7a5852793
Author: 琚致远 <ju...@apache.org>
AuthorDate: Sat May 16 22:48:24 2020 +0800
Fix static files url (#189)
* fix: publicPath
* feat: added netlify.toml
* feat: update redirect API
* feat: update header
* feat: update rewrite
* chore: remove useless key
---
config/config.ts | 2 +-
netlify.toml | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/config/config.ts b/config/config.ts
index b9737de..897ae99 100644
--- a/config/config.ts
+++ b/config/config.ts
@@ -22,7 +22,7 @@ export default defineConfig({
ie: 11,
},
base: '/dashboard/',
- publicPath: '/dashboard/',
+ publicPath: '/',
routes: [
{
path: '/user',
diff --git a/netlify.toml b/netlify.toml
new file mode 100644
index 0000000..89a3866
--- /dev/null
+++ b/netlify.toml
@@ -0,0 +1,13 @@
+[build]
+ publish = "dist/"
+
+[[redirects]]
+ from = "/api/*"
+ to = "https://apisix.iresty.com/apisix/admin/:splat"
+ status = 200
+ force = true
+
+[[redirects]]
+ from = "/*"
+ to = "/index.html"
+ status = 200
\ No newline at end of file