Look at the Nuxt 3 documentation to learn more.
In .env add and make sure to add content viewing permissions in Hygraph API settings
GQL_HOST=https://<HYGRAPH_CDN_LOCATION>.cdn.hygraph.com/content/<ID>/master
See .env.example for the setup requirements.
Add .gql query files in the ./queries folder and use them like this:
const { data } = await useAsyncGql("<QUERY_NAME>", { foo: "bar" });Start the development server on http://localhost:3000:
yarn devBuild the application for production:
yarn buildCheck out the deployment documentation for more