mirror of
https://github.com/acid-info/free.technology.git
synced 2025-02-23 15:08:28 +00:00
fix: fix bug with challenges api
This commit is contained in:
parent
73014f2caf
commit
ca09101716
@ -42,8 +42,10 @@ Page.getLayout = function getLayout(page: React.ReactNode) {
|
||||
export async function getStaticProps() {
|
||||
let issues = {}
|
||||
|
||||
const site = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000'
|
||||
|
||||
try {
|
||||
const res = await fetch('http://localhost:3000/api/challenges', {
|
||||
const res = await fetch(`${site}/api/challenges`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
Loading…
x
Reference in New Issue
Block a user