#Bun in Nextjs

1 messages · Page 1 of 1 (latest)

fallow relic
#

any idea what could this problem be about?
running with bun --bun next dev

errant igloo
#

I think nextjs cannot import the password from 'bun' package, only the bun cli can

errant igloo
fallow relic
#

wow, but im using it!

#

for password.verify/hash

#

doesnt work in example app either

errant igloo
#

guess we'll have to wait for the maintainers to answer

dense brook
#

@fallow relic try something like this

/** @type {import('next').NextConfig} */
const nextConfig = {
  webpack: (config) => {
    config.externals.push("bun");
    return config;
  },
};

export default nextConfig;
chrome gazelle
#

@fallow relic fwiw in dev i have gotten --turbo to work way better with bun then normal

#

(maybe you should try it too)

dense brook
#

@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