mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 11:36:45 +00:00
Fix deploying static files to S3 (#15450)
* upload all image types to s3 * fix __dirname not existing
This commit is contained in:
parent
ccc6c9867f
commit
ebbcbef6d5
2 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ Vue.use(VueRouter);
|
|||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
base: process.env.NODE_ENV === 'production' ? '/' : __dirname, // eslint-disable-line no-process-env
|
||||
base: '/',
|
||||
linkActiveClass: 'active',
|
||||
// When navigating to another route always scroll to the top
|
||||
// To customize the behavior see https://router.vuejs.org/en/advanced/scroll-behavior.html
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ export default defineConfig({
|
|||
}
|
||||
}),
|
||||
ViteS3(ENABLE_S3, {
|
||||
include: [/\.png$/],
|
||||
include: [/.*\.(png|jpg|jpeg|gif|svg|webp|ico)/],
|
||||
basePath: nconf.get('S3_BASE_PATH'),
|
||||
clientConfig: {
|
||||
credentials: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue