DEV Community

Discussion on: Building an Application with GraphQL and SvelteKit

Collapse
 
jiftuq profile image
chris

I get
is outside of Vite serving allow list.???

Collapse
 
spences10 profile image
Scott Spence • Edited

Update your Vite config like this:

vite: {
  resolve: {
    alias: {
      $houdini: path.resolve('.', '$houdini'),
    },
  },
  server: {
    fs: {
      // Allow serving files from one level up to the project root
      allow: ['..'],
    },
  },
},
Enter fullscreen mode Exit fullscreen mode
Collapse
 
jiftuq profile image
chris

Thanks, now it works