Fix nuxt3 issues (#1035)
* Fix nuxt3 issues * fix unintentional npm use
This commit is contained in:
1 parent
3825575f70
commit
ba220abbbf
6 files changed
+822
-826
No files matched your search
@@ -5,8 +5,11 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
nuxtApp.provide('defaultHeaders', () => {
|
||||
const obj = { headers: {} }
|
||||
|
||||
if (process.server && process.env.RATE_LIMIT_IGNORE_KEY) {
|
||||
obj.headers['x-ratelimit-key'] = process.env.RATE_LIMIT_IGNORE_KEY || ''
|
||||
if (process.server) {
|
||||
const config = useRuntimeConfig()
|
||||
if (config.rateLimitKey) {
|
||||
obj.headers['x-ratelimit-key'] = config.rateLimitKey || ''
|
||||
}
|
||||
}
|
||||
|
||||
if (authStore.user) {
|
||||
|
||||
Reference in new issue
Block a user