40 lines
918 B
JavaScript
40 lines
918 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const { version } = require('os')
|
|
const webpack = require('webpack')
|
|
const packageJson = require('./package.json')
|
|
|
|
const nextConfig = {
|
|
output: 'export',
|
|
assetPrefix: '.',
|
|
transpilePackages: ['lucide-react'],
|
|
experimental: {
|
|
serverActions: false,
|
|
},
|
|
images: {
|
|
unoptimized: true,
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**',
|
|
},
|
|
],
|
|
},
|
|
webpack: (config, env) => {
|
|
// do some stuff here
|
|
config.optimization.minimize = false
|
|
config.optimization.minimizer = []
|
|
config.plugins = [
|
|
...config.plugins,
|
|
new webpack.DefinePlugin({
|
|
PLUGIN_CATALOG: JSON.stringify(
|
|
'https://cdn.jsdelivr.net/npm/@janhq/plugin-catalog@latest/dist/index.js'
|
|
),
|
|
VERSION: JSON.stringify(packageJson.version)
|
|
}),
|
|
]
|
|
return config
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|