blog/building-typescript-node-apps-with-nix #6
Replies: 2 comments 5 replies
-
Hello, First I would like to thank you for you post. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for this writeup! The fastify example with Node2Nix works as a standalone index file but as soon as I use relative import in the index.ts file: #!/usr/bin/env node
import fastify from 'fastify';
import DbPlugin from './plugins/db';
const server = fastify();
server.register(DbPlugin);
server.get('/ping', async (request, reply) => {
return 'pong\n';
});
server.listen({ host: '0.0.0.0', port: 8080 }, (err, address) => {
if (err) {
console.error(err);
process.exit(1);
}
console.log(`Server listening at ${address}`);
}); I get this error: Does nix have a way to get around this? |
Beta Was this translation helpful? Give feedback.
-
blog/building-typescript-node-apps-with-nix
Trying some different nix builders for typescript node apps
https://johns.codes/blog/building-typescript-node-apps-with-nix
Beta Was this translation helpful? Give feedback.
All reactions