`npm run build` doesn't create out dir
Unanswered
Yellowhead catfish posted this in #help-forum
Yellowhead catfishOP
When I try to build my NextJS application via
next.config.js
NextJS version: 13.5.7
npm run build
it does not create the out folder, although I have specified the export type in the config next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
images: {
domains: [
"keny.cloud"
],
}
}
export default nextConfig;
NextJS version: 13.5.7
7 Replies
A common issue I see is some people forget to save their file. can you confirm if you have
@Anay-208 | Ping in replies A common issue I see is some people forget to save their file. can you confirm if you have
Yellowhead catfishOP
file is saved
Can you try:
- deleting .next folder
- restarting your system
- deleting .next folder
- restarting your system
@Yellowhead catfish When I try to build my NextJS application via `npm run build` it does not create the out folder, although I have specified the export type in the config
next.config.js
js
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
images: {
domains: [
"keny.cloud"
],
}
}
export default nextConfig;
NextJS version: 13.5.7
are you using app router or pages router
@Anay-208 | Ping in replies are you using app router or pages router
Yellowhead catfishOP
app
@Yellowhead catfish solved?