Compile .node DSO on freebsd
I posted this in the wrong place, my apologies…
so I tried compiling for wasm, as suggested, but the instructions from the AI really didn't work, and I'm not familiar enough with rust and swc to know really what that means... it suggested adding a section to the next config to use the swc-wasm pkg from the bindings folder, but that didn't work. I tried yarn adding the @next/swc-freebsd-x64 package, which seems to satisfy the error checking, but does not yield a built project -- probably because that hasn't been updated since 13.x, and I am trying to use next 14.2.5 (happy to upgrade to 15 if that would help)... any other thoughts? This is my current output running yarn build:
yarn run v1.22.22
$ next build
▲ Next.js 14.2.5
- Environments: .env.production, .env
Creating an optimized production build ...
Done in 1.64s.
Are there more specific instructions someone could give as to how i can compile for wasm and use it to run next on freebsd, or how to compile the @next/swc-freebsd-x64 package to update it to 15.x?
1 Reply
I should mention this build and runs fine on linux and windows. I was just hoping to host in freebsd