Skip to content

Commit

Permalink
Commect out
Browse files Browse the repository at this point in the history
  • Loading branch information
man-sg committed Oct 28, 2022
1 parent ca7d28e commit cbc6ce3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions netlify/edge-functions/split-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Context } from "https://edge.netlify.com";

export default async (request: Request, context: Context) => {
export default async (request: Request, context: any) => {
/*
//const buckets = JSON.parse(Deno.env.get("AB_TEST_LIST") || "null");
const buckets = [{ url: "https://edge-handler-poc.netlify.app", weight: 0.5 }, { url: "https://deploy-preview-1--edge-handler-poc.netlify.app", weight: 0.5 }]
Expand Down Expand Up @@ -55,15 +54,15 @@ export default async (request: Request, context: Context) => {
});
}
//Generate full proxy url
const url = `https://deploy-preview-1--edge-handler-poc.netlify.app`;
//Set cookie if new bucket has been set
if (!hasBucket) {
context.cookies.delete(cookieName);
context.cookies.set({ name: cookieName, value: bucket });
}
}*/

//Generate full proxy url
const url = `https://deploy-preview-1--edge-handler-poc.netlify.app`;
const proxyResponse = await fetch(url);
return new Response(proxyResponse.body, proxyResponse);
};
3 changes: 0 additions & 3 deletions netlify/edge-functions/test.ts

This file was deleted.

3 changes: 3 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
filenameHashing: false
}

0 comments on commit cbc6ce3

Please sign in to comment.