mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-20 21:18:18 +00:00
feat: added dev and prod setup using esbuild
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import Fasitfy from "fastify";
|
||||
|
||||
const fastify = Fasitfy({
|
||||
logger: true,
|
||||
});
|
||||
|
||||
// Declare a route
|
||||
fastify.get("/", async function handler(_request, _reply) {
|
||||
return { hello: "world changed" };
|
||||
});
|
||||
|
||||
// Run the server!
|
||||
const main = async () => {
|
||||
try {
|
||||
await fastify.listen({ port: 8000 });
|
||||
} catch (err) {
|
||||
fastify.log.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
};
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user