update router conf
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2023-02-24 22:18:05 +01:00
parent c24ee139de
commit ee1fc02a16
Signed by: deblan
GPG key ID: 579388D585F70417
3 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ pipeline:
image: node:16-alpine
commands:
- npm i
- sed -i "s#APP_BASE_URL = '/'#APP_BASE_URL = '/og-image'#" webpack.config.js src/router.js
- sed -i "s#APP_BASE_URL = '/'#APP_BASE_URL = '/og-image'#" webpack.config.js
- npm run build
when:
branch: [main]

View file

@ -6,7 +6,7 @@ import About from './page/About.vue'
const routes = [
{
path: APP_BASE_URL,
path: '/',
name: 'home',
component: Home,
meta: {

View file

@ -1,13 +1,13 @@
const Encore = require('@symfony/webpack-encore')
const HtmlWebpackPlugin = require('html-webpack-plugin')
// const APP_BASE_URL = '/'
const APP_BASE_URL = '/'
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev')
Encore
// directory where compiled assets will be stored
.setOutputPath('public/')
// .setPublicPath(APP_BASE_URL)
.setPublicPath(APP_BASE_URL)
.setManifestKeyPrefix('')
.addEntry('app', './src/app.js')
.enableSingleRuntimeChunk()