= ({
- {publisher.name !== "" ? publisher.name : publisher.id}
+ {publisher.name !== '' ? publisher.name : publisher.id}
diff --git a/cors.json b/cors.json
new file mode 100644
index 0000000..987669f
--- /dev/null
+++ b/cors.json
@@ -0,0 +1,8 @@
+[
+ {
+ "origin": ["*"],
+ "method": ["GET", "HEAD"],
+ "responseHeader": ["*"],
+ "maxAgeSeconds": 3000
+ }
+]
diff --git a/next.config.js b/next.config.js
index 7da27b5..75d8784 100644
--- a/next.config.js
+++ b/next.config.js
@@ -37,9 +37,8 @@ const conf = {
destination: 'https://discord.gg/comfyorg',
permanent: false,
},
- ];
+ ]
},
-
}
// export default withMDX(conf);
module.exports = withMDX(conf)
diff --git a/package.json b/package.json
index 3247908..a053601 100644
--- a/package.json
+++ b/package.json
@@ -21,6 +21,7 @@
"@next/mdx": "12.3.1",
"@tanstack/react-query": "^5.17.19",
"axios": "^1.6.5",
+ "downloadjs": "^1.4.7",
"firebase": "^10.11.1",
"flowbite": "^2.3.0",
"flowbite-react": "0.7.5",
@@ -41,6 +42,7 @@
"@babel/core": "7.19.3",
"@mdx-js/react": "2.1.4",
"@types/async-busboy": "^1.1.1",
+ "@types/downloadjs": "^1.4.6",
"@types/mixpanel-browser": "^2.49.0",
"@types/node": "18.8.3",
"@types/qs": "^6.9.15",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ef46d04..dd0cffb 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -20,6 +20,9 @@ importers:
axios:
specifier: ^1.6.5
version: 1.6.8
+ downloadjs:
+ specifier: ^1.4.7
+ version: 1.4.7
firebase:
specifier: ^10.11.1
version: 10.12.0
@@ -75,6 +78,9 @@ importers:
'@types/async-busboy':
specifier: ^1.1.1
version: 1.1.4
+ '@types/downloadjs':
+ specifier: ^1.4.6
+ version: 1.4.6
'@types/mixpanel-browser':
specifier: ^2.49.0
version: 2.49.0
@@ -988,6 +994,9 @@ packages:
'@types/debug@4.1.12':
resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==}
+ '@types/downloadjs@1.4.6':
+ resolution: {integrity: sha512-mp3w70vsaiLRT9ix92fmI9Ob2yJAPZm6tShJtofo2uHbN11G2i6a0ApIEjBl/kv3e9V7Pv7jMjk1bUwYWvMHvA==}
+
'@types/es-aggregate-error@1.0.6':
resolution: {integrity: sha512-qJ7LIFp06h1QE1aVxbVd+zJP2wdaugYXYfd6JxsyRMrYHaxb6itXPogW2tz+ylUJ1n1b+JF1PHyYCfYHm0dvUg==}
@@ -1607,6 +1616,9 @@ packages:
resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==}
engines: {node: '>=6.0.0'}
+ downloadjs@1.4.7:
+ resolution: {integrity: sha512-LN1gO7+u9xjU5oEScGFKvXhYf7Y/empUIIEAGBs1LzUq/rg5duiDrkuH5A2lQGd5jfMOb9X9usDa2oVXwJ0U/Q==}
+
eachr@3.3.0:
resolution: {integrity: sha512-yKWuGwOE283CTgbEuvqXXusLH4VBXnY2nZbDkeWev+cpAXY6zCIADSPLdvfkAROc0t8S4l07U1fateCdEDuuvg==}
engines: {node: '>=0.10'}
@@ -4657,6 +4669,8 @@ snapshots:
dependencies:
'@types/ms': 0.7.34
+ '@types/downloadjs@1.4.6': {}
+
'@types/es-aggregate-error@1.0.6':
dependencies:
'@types/node': 18.8.3
@@ -5348,6 +5362,8 @@ snapshots:
dependencies:
esutils: 2.0.3
+ downloadjs@1.4.7: {}
+
eachr@3.3.0:
dependencies:
editions: 2.3.1
diff --git a/src/api/mutator/axios-instance.ts b/src/api/mutator/axios-instance.ts
index da66686..aecdeaf 100644
--- a/src/api/mutator/axios-instance.ts
+++ b/src/api/mutator/axios-instance.ts
@@ -4,9 +4,10 @@ import qs from 'qs'
const BACKEND_URL = process.env.NEXT_PUBLIC_BACKEND_URL
-export const AXIOS_INSTANCE = Axios.create({
+export const AXIOS_INSTANCE = Axios.create({
baseURL: BACKEND_URL,
- paramsSerializer: params => qs.stringify(params, { arrayFormat: 'repeat' })
+ paramsSerializer: (params) =>
+ qs.stringify(params, { arrayFormat: 'repeat' }),
}) // use your own URL here or environment variable
// Add an interceptor to attach the Firebase JWT token to every request
AXIOS_INSTANCE.interceptors.request.use(async (config) => {
diff --git a/styles/globals.css b/styles/globals.css
index 1bb2f6b..93ab152 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -8,4 +8,4 @@ body {
color: white !important;
}
-@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
\ No newline at end of file
+@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');