diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-06-03 03:10:03 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-06-03 03:11:52 -0700 |
| commit | 8aef4deecc0e64ac294331ba1e13d57b7e6b592c (patch) | |
| tree | 3087e3228b00c7954cc3b126a5978472d84de77e | |
| parent | 19f62be11c87a02b4bf1e24365a8d0629c8b5c66 (diff) | |
clean up old deployment files
| -rw-r--r-- | .env.template | 3 | ||||
| -rw-r--r-- | .yarnrc.yml | 9 | ||||
| -rw-r--r-- | CNAME | 1 | ||||
| -rw-r--r-- | server/index.ts | 4 | ||||
| -rw-r--r-- | src/components/Footer/index.tsx | 2 | ||||
| -rw-r--r-- | src/helpers/scoreToEmoji.ts | 2 |
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 @@ -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: "🟨", |
