Sveltekit SSR not working

PLEASE help us help you by writing a good post!

Jun 20, 04:58:44 PM: fcad4b56 ERROR  Error: ENOENT: no such file or directory, scandir './src/routes/preview/apis/pg/[slug]'
    at Object.readdirSync (node:fs:1452:3)
    at POST (file:///var/task/.netlify/server/entries/endpoints/api/_server.js:77:27)
    at async render_endpoint (file:///var/task/.netlify/server/index.js:209:20)
    at async resolve (file:///var/task/.netlify/server/index.js:2673:22)
    at async respond (file:///var/task/.netlify/server/index.js:2566:22)
    at async Runtime.handler (file:///var/task/.netlify/serverless.js:295:20) {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path: './src/routes/preview/apis/pg/[slug]'

The better the post - the faster the answer.

Hi, have you tried searching the forums and trying a few proposed solutions? this is a pretty common error. Also I suspect where netlify built your site is not matching where your content is. i recommend you check your build settings and repo and compare.