aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-06-03 03:10:03 -0700
committerPinapelz <yukais@pinapelz.com>2026-06-03 03:11:52 -0700
commit8aef4deecc0e64ac294331ba1e13d57b7e6b592c (patch)
tree3087e3228b00c7954cc3b126a5978472d84de77e
parent19f62be11c87a02b4bf1e24365a8d0629c8b5c66 (diff)
clean up old deployment files
-rw-r--r--.env.template3
-rw-r--r--.yarnrc.yml9
-rw-r--r--CNAME1
-rw-r--r--server/index.ts4
-rw-r--r--src/components/Footer/index.tsx2
-rw-r--r--src/helpers/scoreToEmoji.ts2
6 files changed, 7 insertions, 14 deletions
diff --git a/.env.template b/.env.template
new file mode 100644
index 0000000..1329a29
--- /dev/null
+++ b/.env.template
@@ -0,0 +1,3 @@
+SERVER_PORT=3001
+HEARDLE_SALT="changeme"
+API_URL="http://localhost:3001"
diff --git a/.yarnrc.yml b/.yarnrc.yml
deleted file mode 100644
index ea8f92e..0000000
--- a/.yarnrc.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-nodeLinker: node-modules
-
-packageExtensions:
- eslint-plugin-flowtype@*:
- peerDependenciesMeta:
- "@babel/plugin-syntax-flow":
- optional: true
- "@babel/plugin-transform-react-jsx":
- optional: true
diff --git a/CNAME b/CNAME
deleted file mode 100644
index 6c586dc..0000000
--- a/CNAME
+++ /dev/null
@@ -1 +0,0 @@
-heardle.epicwolverine.com \ No newline at end of file
diff --git a/server/index.ts b/server/index.ts
index bf4cafd..7b4f1d5 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -10,7 +10,7 @@ const app = express();
app.use(cors());
app.use(express.json());
-const PORT = process.env.PORT || 3001;
+const SERVER_PORT = process.env.SERVER_PORT || 3001;
const SALT = process.env.HEARDLE_SALT ?? 'changeme';
function getDailyKey(): Buffer {
@@ -48,4 +48,4 @@ if (process.env.NODE_ENV === 'production') {
});
}
-app.listen(PORT, () => console.log(`Server running on :${PORT}`));
+app.listen(SERVER_PORT, () => console.log(`Server running on :${SERVER_PORT}`));
diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx
index 3ba4c7c..4618042 100644
--- a/src/components/Footer/index.tsx
+++ b/src/components/Footer/index.tsx
@@ -20,7 +20,7 @@ export function Footer() {
return (
<footer>
<Styled.Text>
- <Styled.Link href="">
+ <Styled.Link href="https://github.com/pinapelz/k-heardle">
Source Code
</Styled.Link>
</Styled.Text>
diff --git a/src/helpers/scoreToEmoji.ts b/src/helpers/scoreToEmoji.ts
index 3d50d7d..cb525a8 100644
--- a/src/helpers/scoreToEmoji.ts
+++ b/src/helpers/scoreToEmoji.ts
@@ -4,7 +4,7 @@ import { appName, startDate } from "../constants";
export function scoreToEmoji(guesses: GuessType[]): string {
const msInDay = 86400000;
const todaysDate = new Date();
- const index = Math.floor((todaysDate.getTime() - startDate.getTime() )/msInDay) + 1
+ const index = Math.floor((todaysDate.getTime() - startDate.getTime() )/msInDay) + 1
const emojis = {
incorrect: "🟥",
partiallyCorrect: "🟨",
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage