Skip to content

Commit 766542e

Browse files
committed
docs: remove redis connection
1 parent c45bc87 commit 766542e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/app/api/deploy-postgres/route.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ const SUSPEND_TIMEOUT_SECONDS = 120; // 2 minutes
1717
const PROJECT_COOKIE_MAX_AGE_SECONDS = 3600; // 1 hour
1818
const PROJECT_COOKIE_NAME = 'neon-project';
1919

20-
const neonApiClient = createApiClient({
21-
apiKey: process.env.DEPLOY_POSTGRES_NEON_API_KEY,
22-
});
20+
// const neonApiClient = createApiClient({
21+
// apiKey: process.env.DEPLOY_POSTGRES_NEON_API_KEY,
22+
// });
2323

24-
const ratelimit = new Ratelimit({
25-
redis: new Redis({
26-
url: process.env.DEPLOY_POSTGRES_UPSTASH_REDIS_REST_URL,
27-
token: process.env.DEPLOY_POSTGRES_UPSTASH_REDIS_REST_TOKEN,
28-
}),
29-
limiter: Ratelimit.slidingWindow(RATE_LIMIT_REQUESTS, RATE_LIMIT_WINDOW),
30-
analytics: true,
31-
});
24+
// const ratelimit = new Ratelimit({
25+
// redis: new Redis({
26+
// url: process.env.DEPLOY_POSTGRES_UPSTASH_REDIS_REST_URL,
27+
// token: process.env.DEPLOY_POSTGRES_UPSTASH_REDIS_REST_TOKEN,
28+
// }),
29+
// limiter: Ratelimit.slidingWindow(RATE_LIMIT_REQUESTS, RATE_LIMIT_WINDOW),
30+
// analytics: true,
31+
// });
3232

3333
// Disabled Upstash Redis and ticket creation for build
3434
export async function POST(request) {

0 commit comments

Comments
 (0)