#Bun in Nextjs
1 messages · Page 1 of 1 (latest)
I think nextjs cannot import the password from 'bun' package, only the bun cli can
:/ so how do i fix then?
I'm not sure about that since i'm not a maintainer, but for now i think you should delete the import
guess we'll have to wait for the maintainers to answer
@fallow relic try something like this
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config) => {
config.externals.push("bun");
return config;
},
};
export default nextConfig;
@fallow relic fwiw in dev i have gotten --turbo to work way better with bun then normal
(maybe you should try it too)
@chrome gazelle i think the main question is to use bun specific api's inside nextjs, but I agree that the turbo is better in development