- add alias_url ind config/app.php
- Define constants DATACITE_PREFIX abd APP_URL inside wevpack.mix.js - define subdomains for alias and dois inside routes/web.php - install dotenv via npm
This commit is contained in:
parent
a68b7b34cf
commit
00bea6885e
9 changed files with 541 additions and 490 deletions
|
@ -1,5 +1,6 @@
|
|||
let mix = require('laravel-mix');
|
||||
|
||||
require('dotenv').config();
|
||||
let webpack = require('webpack')
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mix Asset Management siehe https://laravel.com/docs/5.5/mix
|
||||
|
@ -55,7 +56,13 @@ mix.js('resources/js/datasetPublish.js', 'public/backend/publish').vue()
|
|||
// defaults.
|
||||
extensions: ['*', '.js', '.jsx', '.vue', '.ts', '.tsx'],
|
||||
},
|
||||
});
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({ // Remove this plugin if you don't plan to define any global constants
|
||||
DATACITE_PREFIX: JSON.stringify(process.env.DATACITE_PREFIX),
|
||||
APP_URL: JSON.stringify(process.env.APP_URL)
|
||||
}),
|
||||
]
|
||||
});
|
||||
// .options({
|
||||
// //publicPath: '../'
|
||||
// processCssUrls: false
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue