Compare commits

..

9 commits
2.1.4 ... dev

Author SHA1 Message Date
Cooper
2349e50dbe
update packages
Some checks failed
Linting and Testing / Run Linters (push) Has been cancelled
Linting and Testing / Build project (push) Has been cancelled
Linting and Testing / Build docker (push) Has been cancelled
Docker Publish / build (push) Has been cancelled
Release / Release (push) Has been cancelled
2025-04-20 03:30:54 +00:00
TPN
46560bac90 Fix for netlify stupid encoding issue
Some checks failed
Linting and Testing / Run Linters (push) Has been cancelled
Linting and Testing / Build project (push) Has been cancelled
Linting and Testing / Build docker (push) Has been cancelled
Docker Publish / build (push) Has been cancelled
Release / Release (push) Has been cancelled
2025-01-31 13:42:31 +00:00
TPN
d698358f64
Merge pull request #3 from Pasithea0/dev
Some checks failed
Linting and Testing / Run Linters (push) Has been cancelled
Linting and Testing / Build project (push) Has been cancelled
Linting and Testing / Build docker (push) Has been cancelled
Docker Publish / build (push) Has been cancelled
Release / Release (push) Has been cancelled
Fix Netlify build error
2025-01-01 11:01:18 +05:30
Ivan Evans
4f6add4b0b bumb version 🤷 2024-12-31 12:57:52 -07:00
Ivan Evans
2747795a0f Fix Netlify build 2024-12-31 12:54:43 -07:00
Paradox
0ffcbbbe05 Fix client not being able to access cookie headers 2024-07-07 17:24:23 +00:00
Captain Jack Sparrow
8b35fbf648
Update wrangler.toml 2024-05-30 13:21:45 -04:00
Captain Jack Sparrow
77a0a2bc00
Update wrangler.toml 2024-05-30 13:21:13 -04:00
Cooper Ransom
3a3fdaa747 Update workflows 2024-05-02 15:13:54 -04:00
8 changed files with 5814 additions and 2849 deletions

View file

@ -3,7 +3,7 @@ name: Docker Publish
on: on:
push: push:
branches: branches:
- main - dev
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io

View file

@ -3,7 +3,7 @@ name: Release
on: on:
push: push:
branches: branches:
- main - dev
jobs: jobs:
release: release:

View file

@ -1,4 +1,6 @@
[build] [build]
command = "pnpm build:netlify" command = "pnpm build:netlify"
publish = "." publish = ".netlify"
edge_functions = ".netlify" edge_functions = ".netlify/functions"
[functions]
directory = ".netlify/functions"

View file

@ -4,6 +4,7 @@ import pkg from "./package.json";
//https://nitro.unjs.io/config //https://nitro.unjs.io/config
export default defineNitroConfig({ export default defineNitroConfig({
noPublicDir: true, noPublicDir: true,
compatibilityDate: "2025-04-20",
srcDir: "./src", srcDir: "./src",
runtimeConfig: { runtimeConfig: {
version: pkg.version version: pkg.version

View file

@ -1,7 +1,7 @@
{ {
"name": "simple-proxy", "name": "simple-proxy",
"private": true, "private": true,
"version": "2.1.5", "version": "2.1.6",
"scripts": { "scripts": {
"prepare": "nitropack prepare", "prepare": "nitropack prepare",
"dev": "nitropack dev", "dev": "nitropack dev",
@ -16,19 +16,19 @@
"preinstall": "npx only-allow pnpm" "preinstall": "npx only-allow pnpm"
}, },
"dependencies": { "dependencies": {
"h3": "^1.10.0", "h3": "^1.15.1",
"jose": "^5.2.0", "jose": "^5.10.0",
"nitropack": "^2.8.1" "nitropack": "^2.11.9"
}, },
"devDependencies": { "devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.7.0", "@rollup/wasm-node": "^4.40.0",
"@typescript-eslint/parser": "^6.7.0", "@typescript-eslint/eslint-plugin": "^6.21.0",
"eslint": "^8.48.0", "@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.1",
"eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0", "eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.0", "eslint-import-resolver-typescript": "^3.10.0",
"eslint-plugin-prettier": "^5.0.0", "eslint-plugin-prettier": "^5.2.6"
"@rollup/wasm-node": "^4.9.4"
}, },
"pnpm": { "pnpm": {
"overrides": { "overrides": {

File diff suppressed because it is too large Load diff

View file

@ -64,6 +64,7 @@ export function getAfterResponseHeaders(
'Access-Control-Expose-Headers': '*', 'Access-Control-Expose-Headers': '*',
Vary: 'Origin', Vary: 'Origin',
'X-Final-Destination': finalUrl, 'X-Final-Destination': finalUrl,
...output,
}; };
} }

View file

@ -57,6 +57,16 @@ export async function specificProxyRequest(
const method = opts.fetchOptions?.method || event.method; const method = opts.fetchOptions?.method || event.method;
const oldHeaders = getProxyRequestHeaders(event); const oldHeaders = getProxyRequestHeaders(event);
// netlify seems to be changing the content-encoding header to gzip when the reponse is encoded in zstd
// so as temp fix just not sending zstd in accept encoding
if (oldHeaders['accept-encoding']?.includes('zstd'))
oldHeaders['accept-encoding'] = oldHeaders['accept-encoding']
.split(',')
.map((x: string) => x.trim())
.filter((x: string) => x !== 'zstd')
.join(', ');
opts.blacklistedHeaders?.forEach((header) => { opts.blacklistedHeaders?.forEach((header) => {
const keys = Object.keys(oldHeaders).filter( const keys = Object.keys(oldHeaders).filter(
(v) => v.toLowerCase() === header.toLowerCase(), (v) => v.toLowerCase() === header.toLowerCase(),