Compare commits
2 Commits
e2a17a38b9
...
2863076316
| Author | SHA1 | Date |
|---|---|---|
|
|
2863076316 | |
|
|
87023d8579 |
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import { useState } from "react"
|
import { useState } from "react"
|
||||||
|
|
||||||
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/api/subscribe"
|
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/subscribe"
|
||||||
const LIST_UUID = "df598d1a-4bed-4a8b-8c36-a5a6346febf0" // Trippin list
|
const LIST_UUID = "df598d1a-4bed-4a8b-8c36-a5a6346febf0" // Trippin list
|
||||||
|
|
||||||
export function NewsletterSignup() {
|
export function NewsletterSignup() {
|
||||||
|
|
@ -18,7 +18,7 @@ export function NewsletterSignup() {
|
||||||
setStatus("loading")
|
setStatus("loading")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${NEWSLETTER_API}/subscribe`, {
|
const response = await fetch(NEWSLETTER_API, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
services:
|
||||||
|
trippin-prod:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
image: trippin-prod:latest
|
||||||
|
container_name: trippin-prod
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- traefik-public
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.trippin.rule=Host(`trippinballs.lol`) || Host(`www.trippinballs.lol`)"
|
||||||
|
- "traefik.http.routers.trippin.entrypoints=web"
|
||||||
|
- "traefik.http.services.trippin.loadbalancer.server.port=80"
|
||||||
|
- "traefik.docker.network=traefik-public"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik-public:
|
||||||
|
external: true
|
||||||
Loading…
Reference in New Issue