-
Hi,
require('@babel/register')({
presets: ['next/babel'],
extensions: ['.ts', '.tsx', '.js', '.jsx'],
env: {
development: {
sourceMaps: 'inline',
retainLines: true,
compact: true, // this line
},
},
})
export default buildConfig({
admin: {
// this function
webpack: (config) => {
config.infrastructureLogging = {
level: 'error',
}
return config
},
},
})
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
PayloadCMS is something you run on TOP of Express. What you can do is start with a typescript next app using swc by default using You can then copy over payload config files, get rid of babel config code, copy files for blocks,collections and components over to have those as well. Also edit: it dawned on me that you could probably just remove babel configs more easily than the above. you could try just removing babel config in next configs since next will only use babel if specified. edit2: it's payload's admin panel that uses webpack, not sure what we can do about it here |
Beta Was this translation helpful? Give feedback.
-
I think this is not relevant anymore. Now, we have new way of integrating with Next. |
Beta Was this translation helpful? Give feedback.
I think this is not relevant anymore. Now, we have new way of integrating with Next.