Spaces:
Sleeping
Sleeping
fix env
Browse files- src/middleware.ts +1 -2
src/middleware.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import { NextResponse } from 'next/server';
|
| 2 |
-
import { env } from 'process';
|
| 3 |
|
| 4 |
-
const API_HOST = env.NEXT_PUBLIC_API_HOST || 'http://localhost:8000';
|
| 5 |
|
| 6 |
export const config = {
|
| 7 |
matcher: '/api/solve',
|
|
|
|
| 1 |
import { NextResponse } from 'next/server';
|
|
|
|
| 2 |
|
| 3 |
+
const API_HOST = process.env.NEXT_PUBLIC_API_HOST || 'http://localhost:8000';
|
| 4 |
|
| 5 |
export const config = {
|
| 6 |
matcher: '/api/solve',
|