Skip to content

Commit

Permalink
Update next.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
noobnooc committed Aug 18, 2024
1 parent 6897201 commit 5097cdf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 27 deletions.
27 changes: 0 additions & 27 deletions next.config.js

This file was deleted.

14 changes: 14 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const isDev = process.argv.indexOf('dev') !== -1
const isBuild = process.argv.indexOf('build') !== -1
if (!process.env.VELITE_STARTED && (isDev || isBuild)) {
process.env.VELITE_STARTED = '1'
const { build } = await import('velite')
await build({ watch: isDev, clean: !isDev })
}

/** @type {import('next').NextConfig} */
const nextConfig = {
swcMinify: true,
};

export default nextConfig;

0 comments on commit 5097cdf

Please sign in to comment.