Skip to content
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"useTabs": false
}
24 changes: 20 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#273104",
"titleBar.activeBackground": "#374506",
"titleBar.activeForeground": "#F7FDE1"
"activityBar.background": "#1a3500",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#005ebf",
"activityBarBadge.foreground": "#e7e7e7",
"titleBar.activeBackground": "#010200",
"titleBar.inactiveBackground": "#01020099",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveForeground": "#e7e7e799",
"statusBar.background": "#010200",
"statusBarItem.hoverBackground": "#1a3500",
"statusBar.foreground": "#e7e7e7",
"activityBar.activeBackground": "#1a3500",
"activityBar.activeBorder": "#005ebf"
},
"eslint.enable": true
"eslint.enable": true,
"peacock.color": "#010200",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
2 changes: 0 additions & 2 deletions cypress/integration/anagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ context("Actions", () => {
cy.get("input[name=anagram]")
.type("pools", { delay: 200 })
.get("#ua-anagram-list")
.wait(1000)
.should("contain.text", "spool")
.should("contain.text", "loops")
.should("contain.text", "polos")
.get("input[name=anagram]")
.wait(1000)
.clear()
.type("splito", { delay: 200 })
.get("#ua-anagram-list")
Expand Down
19 changes: 18 additions & 1 deletion functions/http-proxy/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 23 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require = require("esm")(module);
require("dotenv").config()
const withImages = require("next-images");
const merge = require("webpack-merge");
const { merge } = require("webpack-merge");
const path = require("path");
const getContent = require("./scripts/get-content");
// const getImages = require("./scripts/get-images");
Expand All @@ -12,6 +12,9 @@ const {
CONTENTFUL_SPACE_ID,
OXFORD_DICTIONARY_APP_ID,
OXFORD_DICTIONARY_APP_KEY,
HASURA_SECRET,
HASURA_URL,
BOOKMARK_COOKIE_SECRET,
NODE_ENV
} = process.env;
module.exports = withImages({
Expand All @@ -25,12 +28,17 @@ module.exports = withImages({
}
}, config);
},
serverRuntimeConfig: {
BOOKMARK_COOKIE_SECRET
},
publicRuntimeConfig: {
mode: NODE_ENV,
CONTENTFUL_ACCESS_TOKEN,
CONTENTFUL_SPACE_ID,
OXFORD_DICTIONARY_APP_ID,
OXFORD_DICTIONARY_APP_KEY,
HASURA_SECRET,
HASURA_URL
},
exportPathMap: async function () {
const paths = {
Expand All @@ -45,5 +53,18 @@ module.exports = withImages({
});

return paths;
}
},
headers: async () => {
return [
{
source: "/api/bookmarks",
headers: [
{
key: "access-control-allow-origin",
value: "*",
}
],
},
]
},
});
Loading