We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run dev, npm run start, npx micro, npx prismy don't work and the readme doesn't actually say what to run the server locally.
The text was updated successfully, but these errors were encountered:
Prismy returns a handler for Node.js's HttpServer. So you can run it like
HttpServer
import http from 'http' import { prismy, querySelector, res } from 'prismy' const handler = prismy([querySelector], query => { return res(query) }) const port = process.env.PORT || 3000 const server = new http.Server(handler) server.listen(port) console.log(`Hosting... http://localhost:${port}`)
Please check our examples! https://github.com/prismyland/prismy/blob/master/examples/basic-server/src/scripts/serve.ts
Sorry, something went wrong.
No branches or pull requests
npm run dev, npm run start, npx micro, npx prismy don't work and the readme doesn't actually say what to run the server locally.
The text was updated successfully, but these errors were encountered: