Skip to content

Commit 4e1ea08

Browse files
authored
Merge pull request #13 from ly5156/branch-v1.0.3
Fixed address error when accessing via proxy
2 parents 7925323 + 962e5e8 commit 4e1ea08

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/web/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
ENV = 'production'
33

44
# base api
5-
VUE_APP_BASE_API = '/'
5+
VUE_APP_BASE_API = './'

packages/web/public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.svg">
8+
<base href="/"/>
89
<title>HAMi</title>
910
</head>
1011
<body>

packages/web/vue.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const port = process.env.port || process.env.npm_config_port || 8080; // dev por
1212

1313
module.exports = defineConfig({
1414
transpileDependencies: true,
15-
publicPath: '/',
15+
publicPath: './',
1616
outputDir: path.join(__dirname, '../../', 'public'),
1717
indexPath: 'index.hbs',
1818
assetsDir: 'static',

0 commit comments

Comments
 (0)