rename PUBLIC_URL to NEXT_PUBLIC_PUBLIC_URL
This commit is contained in:
@ -29,7 +29,7 @@ export const getServerSideProps = async (context) => {
|
||||
};
|
||||
}
|
||||
const { data: item } = await axios.get(
|
||||
process.env.PUBLIC_URL + "/api/data/locations/" + context.params.id
|
||||
process.env.NEXT_PUBLIC_PUBLIC_URL + "/api/data/locations/" + context.params.id
|
||||
);
|
||||
console.log(item) //this is the location object
|
||||
context.res.setHeader("Cache-Control", "s-maxage=1, stale-while-revalidate");
|
||||
|
Reference in New Issue
Block a user