Update DeepL proxy target and cleanup project files
Changed proxy target in nitro.config.ts from api-free.deepl.com to www2.deepl.com. Removed README.md and reformatted .eslintrc. Reordered scripts in package.json for consistency.
This commit is contained in:
1 parent
31c82ff0d5
commit
19f1e5bbba
6 files changed
+1726
-692
No files matched your search
@@ -1,5 +1,3 @@
|
||||
{
|
||||
"extends": [
|
||||
"@nuxtjs/eslint-config-typescript"
|
||||
]
|
||||
"extends": ["@nuxtjs/eslint-config-typescript"]
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
# DeepL Proxy
|
||||
|
||||
This is a simple proxy server for the DeepL API.
|
||||
|
||||
<https://github.com/cloudflare/workerd/issues/776>
|
||||
|
||||
The proxies are available at the URLs below:
|
||||
|
||||
1. <deepl-proxy.netlify.app>
|
||||
2. <deepl-proxy.vercel.app>
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
//https://nitro.unjs.io/config
|
||||
export default defineNitroConfig({
|
||||
routeRules: {
|
||||
'/**': {
|
||||
proxy: 'https://api-free.deepl.com/**'
|
||||
}
|
||||
}
|
||||
"/**": {
|
||||
proxy: "https://www2.deepl.com/**",
|
||||
},
|
||||
},
|
||||
});
|
||||
+7
-7
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"prepare": "nitropack prepare",
|
||||
"dev": "nitropack dev",
|
||||
"build": "nitropack build",
|
||||
"preview": "node .output/server/index.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"nitropack": "latest"
|
||||
},
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "nitropack build",
|
||||
"dev": "nitropack dev",
|
||||
"prepare": "nitropack prepare",
|
||||
"preview": "node .output/server/index.mjs"
|
||||
}
|
||||
}
|
||||
Generated
+1712
-666
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -1,3 +1,3 @@
|
||||
export default eventHandler(() => {
|
||||
return { nitro: 'Is Awesome!' }
|
||||
})
|
||||
return { nitro: "Is Awesome!" };
|
||||
});
|
||||
Reference in new issue
Block a user