fix: serverless-client doc references
This commit is contained in:
parent
7c0b5ba878
commit
a6624f4487
@ -61,7 +61,7 @@ For example, if you are using Next.js, you can:
|
|||||||
```
|
```
|
||||||
3. Configure the client to use the proxy:
|
3. Configure the client to use the proxy:
|
||||||
```ts
|
```ts
|
||||||
import * as fal from '@fal-ai/serverless-js';
|
import * as fal from '@fal-ai/serverless-client';
|
||||||
fal.config({
|
fal.config({
|
||||||
requestMiddleware: fal.withProxy({
|
requestMiddleware: fal.withProxy({
|
||||||
targetUrl: '/api/fal/proxy',
|
targetUrl: '/api/fal/proxy',
|
||||||
|
|||||||
@ -11,7 +11,7 @@ The `fal.ai` JavaScript Client Library provides a seamless way to interact with
|
|||||||
Before diving into the client-specific features, ensure you've set up your credentials:
|
Before diving into the client-specific features, ensure you've set up your credentials:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import * as fal from '@fal-ai/serverless-js';
|
import * as fal from '@fal-ai/serverless-client';
|
||||||
|
|
||||||
fal.config({
|
fal.config({
|
||||||
// Can also be auto-configured using environment variables:
|
// Can also be auto-configured using environment variables:
|
||||||
|
|||||||
@ -65,7 +65,7 @@ For Express applications:
|
|||||||
Once you've set up the proxy, you can configure the client to use it:
|
Once you've set up the proxy, you can configure the client to use it:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import * as fal from '@fal-ai/serverless-js';
|
import * as fal from '@fal-ai/serverless-client';
|
||||||
|
|
||||||
fal.config({
|
fal.config({
|
||||||
requestMiddleware: fal.withProxy({
|
requestMiddleware: fal.withProxy({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user