Laravel Vapor - attempt to fix a missing asset (Error 403)

This commit is contained in:
Dillon Ngo
2024-01-03 00:29:43 +08:00
parent a76c884a87
commit 69df147bb5
-18
View File
@@ -12,21 +12,3 @@ const mix = require('laravel-mix');
*/
mix.js('./resources/assets/vue/app.js', 'public/vue').version();
//cief todo: gulp
// if (mix.inProduction()) {
const ASSET_URL = process.env.ASSET_URL;
mix.webpackConfig(webpack => {
return {
plugins: [
new webpack.DefinePlugin({
"process.env.ASSET_PATH": JSON.stringify(ASSET_URL)
})
],
output: {
publicPath: ASSET_URL
}
};
});
// }