Proxy and env var updates
This commit is contained in:
parent
76c80cde8c
commit
86c616de0a
6 changed files with 209 additions and 209 deletions
|
|
@ -27,8 +27,8 @@ export const getServerSideProps: GetServerSideProps = async (
|
|||
const {
|
||||
params: { id },
|
||||
} = context;
|
||||
const baseURL = "https://help.cdr.link/api/v1";
|
||||
const token = process.env.ZAMMAD_TOKEN;
|
||||
const baseURL = `${process.env.ZAMMAD_URL}/api/v1`;
|
||||
const token = process.env.ZAMMAD_API_TOKEN;
|
||||
const headers = { Authorization: `Token ${token}` };
|
||||
const rawTicket = await fetch(`${baseURL}/tickets/${id}`, {
|
||||
headers,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue