fixed backend issue
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
import Layout from '../layouts/Layout.astro';
|
||||
|
||||
const API_URL = import.meta.env.PUBLIC_API_URL || 'http://localhost:3000';
|
||||
const API_URL = (typeof process !== 'undefined' ? process.env.PUBLIC_API_URL : import.meta.env.PUBLIC_API_URL) || 'http://localhost:3000';
|
||||
|
||||
interface Post {
|
||||
slug: string;
|
||||
|
||||
Reference in New Issue
Block a user