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 image: node:16-alpine
commands: commands:
- npm i - 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 - npm run build
when: when:
branch: [main] branch: [main]

View file

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

View file

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