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
Follow the Next.js installation method to normally import and export, and configure the same development port as Next.js: localhost:4000.
// Use the Bun package manager.
// Use the treaty function to create a client proxy for the Elysia server and use it in the root layout page.
// app/libs/api
import { treaty } from '@elysiajs/eden';
import { App } from '../api';
export const api = treaty(typeof window === 'undefined' ? http://localhost:4000 : 'http://localhost:4000').api;
// app/[lng]/layout.ts
import { App } from '@/app/api';
import { treaty } from '@elysiajs/eden';
What version of Elysia is running?
1.1.20
What platform is your computer?
windows x64
What steps can reproduce the bug?
Follow the Next.js installation method to normally import and export, and configure the same development port as Next.js: localhost:4000.
// Use the Bun package manager.
// Use the treaty function to create a client proxy for the Elysia server and use it in the root layout page.
// app/libs/api
import { treaty } from '@elysiajs/eden';
import { App } from '../api';
export const api = treaty(typeof window === 'undefined' ?
http://localhost:4000
: 'http://localhost:4000').api;// app/[lng]/layout.ts
import { App } from '@/app/api';
import { treaty } from '@elysiajs/eden';
export const client = treaty('http://localhost:4000');
What is the expected behavior?
Consistent performance on Windows and Mac.
What do you see instead?
No response
Additional information
No response
Have you try removing the
node_modules
andbun.lockb
and try again yet?No response
The text was updated successfully, but these errors were encountered: