This commit is contained in:
parent
c24ee139de
commit
ee1fc02a16
|
@ -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]
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue