Your first server
Write the server#
Save this as server.js (it's _includes/samples/server.js in this example):
import { serve } from "pinecone";
serve({ port: 8080 }, (request) => {
return new Response(`Hello from ${request.url}`);
});
Run it#
pinecone run server.js
Port 8080 is taken?
Change port in the call to serve, or set it in the config.