Builder SDK returns `undefined` with NextJS app router
- Dominant language
- TypeScript
- Stars
- 8.8k
- Forks
- 1.2k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 17
Description
**Describe the bug**
Following the integration guide for NextJs 13 with app router results in content being `undefined` - however it logs out the URL in the terminal, and hitting this URL directly in my browser returns data, so it seems like the issue is with the Next13 integration
With the components generated by the builder dev tooling
**Expected behavior**
I expect the same data i would get from hitting the API myself
# Versions
```
Node: 20.6.1
MacOs 13.4
```
```
"@builder.io/dev-tools": "^0.2.3",
"@builder.io/react": "^3.1.1",
"@builder.io/sdk": "^2.1.1",
"@portabletext/react": "^3.0.11",
"@sanity/block-content-to-markdown": "^0.0.5",
"@sanity/client": "^6.7.0",
"@types/node": "20.5.7",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"@vercel/analytics": "^1.0.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"date-fns": "^2.30.0",
"eslint": "8.48.0",
"eslint-config-next": "13.4.19",
"framer-motion": "^10.16.2",
"lucide-react": "^0.292.0",
"next": "13.4.19",
"postcss": "8.4.29",
"qs": "^6.11.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.10.1",
"react-markdown": "^9.0.0",
"react-toastify": "^9.1.3",
"tailwind-merge": "^2.0.0",
"tailwindcss": "3.3.3",
"tailwindcss-animate": "^1.0.7",
"tailwindcss-animated": "^1.0.1",
"typescript": "5.2.2"
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.