You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v4.16.12
Node v20.9.0
System Linux (x64)
Package Manager npm
Output server
Adapter @astrojs/netlify
Integrations @astrojs/tailwind
@astrojs/sitemap
Describe the Bug
I am using astrojs/netlify adapter .The output it produces creates such folder structure such that functions are deeply nested, so I tried to do this in netlify.toml
node_bundler = "esbuild"
directory = ".netlify/v1/functions/ssr/.netlify/build"```
Now it seems to find the function but it throws error
` error decoding lambda response: error decoding lambda response: unexpected end of JSON input`
I don't know whether it's an astro problem, or netlify problem, I just can't make them work. The rest of the routes, for static pages work fine, this only happens for dynamic routes
this is astro.config
import { defineConfig } from ‘astro/config’;
import tailwind from ‘@astrojs/tailwind’;
import sitemap from ‘@astrojs/sitemap’;
import netlify from ‘@astrojs/netlify/functions’;
Astro Info
Describe the Bug
I am using astrojs/netlify adapter .The output it produces creates such folder structure such that functions are deeply nested, so I tried to do this in netlify.toml
import { defineConfig } from ‘astro/config’;
import tailwind from ‘@astrojs/tailwind’;
import sitemap from ‘@astrojs/sitemap’;
import netlify from ‘@astrojs/netlify/functions’;
export default defineConfig({
output: ‘server’,
adapter: netlify(),
integrations: [
tailwind(),
sitemap(),
],
});
{
“name”: “usa-salvage-yards”,
“type”: “module”,
“version”: “0.0.1”,
“scripts”: {
“dev”: “astro dev”,
“start”: “astro dev”,
“build”: “astro build”,
“preview”: “astro preview”,
“astro”: “astro”
},
“dependencies”: {
“@astrojs/netlify”: “^5.5.4”,
“@astrojs/sitemap”: “^3.2.1”,
“@astrojs/tailwind”: “^5.1.2”,
“astro”: “^4.16.12”,
“nodemailer”: “^6.9.16”,
“papaparse”: “^5.4.1”,
“tailwindcss”: “^3.4.15”
},
“devDependencies”: {
“@types/nodemailer”: “^6.4.16”,
“@types/papaparse”: “^5.3.15”
}
}
What's the expected result?
it should render those pages
Link to Minimal Reproducible Example
can't
Participation
The text was updated successfully, but these errors were encountered: