rsnext/examples/with-xata/package.json
Alexis Rico a45bf8c93b
Fix deploy button in with-xata example (#43608)
The deploy button of the `with-xata` example is not working properly
because we were lacking the integration to configure the env variables.

[![Deploy with
Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/SferaDev/nextjs-demo/tree/fix-with-xata-deploy/examples/with-xata&project-name=with-xata&repository-name=with-xata&integration-ids=oac_IDpMECDuYqBvAtu3wXXMQe0J)

Taking advantage of the PR, some other changes:

- Adding `alt` to `next/image` to fix build with latest version
- Update readme to add more information in the Xata CLI section
- Use a new command to initialize the database schema on first
deployment
- Remove hardcoded URL in `xata.codegen.ts`
- Remove deprecated `formatVersion` in `schema.template.json`
- Update dependencies

Note: The integration is still work in progress, it works for the
`Deploy to Vercel` button but we want to improve the UI/UX before
submitting it to the Marketplace, keeping it unlisted for a while.
2022-12-01 11:34:23 -08:00

24 lines
603 B
JSON

{
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"xata": "xata codegen",
"postinstall": "npx @xata.io/cli@latest schema upload schema.template.json --branch main --create-only --yes"
},
"devDependencies": {
"@types/node": "18.11.10",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9",
"eslint": "8.28.0",
"eslint-config-next": "latest",
"typescript": "4.9.3"
},
"dependencies": {
"@xata.io/client": "^0.21.3",
"next": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}