Skip to content
Our sponsors
Kuizto — The Everyday Cooking App

1.0.0-rc.4

🌟 Help us spread the word about Prisma-AppSync by starring the repo.

Highlights

⚡️ Local dev server is now using vite-node instead of ts-node-dev

Due to some incompatibilities between ts-node-dev and some of the newest changes, Vite is now used as the underlying Node runtime for the Prisma-AppSync local dev server.

To migrate an existing project using the local dev server, you'll need to edit the dev script inside your package.json and replace the following part:

shell
npx ts-node-dev --rs --transpile-only --watch './*.ts' -- ./server.ts

with:

shell
npx vite-node ./server.ts --watch --

⚡️ Local dev server upgraded to GraphQL Yoga v3, with the ability to use custom options

When using Prisma-AppSync local dev server, it is now possible to pass custom options from the server.ts file.

ts
createServer({
    yogaServerOptions: {
        cors: {
            origin: 'http://localhost:4000',
            credentials: true,
            allowedHeaders: ['X-Custom-Header'],
            methods: ['POST']
        }
        /* ...other args */
    }
})

For the full list of supported options, please refer to https://the-guild.dev/graphql/yoga-server/docs and the createYoga method.

Fixes and improvements

Credits

Sylvain
Sylvain

🧙‍♂️ 💻 🤔 📖
Ciprian Caba
Ciprian Caba

💻 🤔
Cameron Jenkinson
Cameron Jenkinson

💻
Bell
Bell

💻

Github sponsors

Enjoy using Prisma-AppSync? Please consider 💛 Github sponsors.

Released under the BSD 2-Clause License.