Compare commits
No commits in common. "e06c24ea211b7c2984a264ef47cb2f5e03ddb9fe" and "0ee81790935bf3e6f9d6bbf8e2654a0fbe549634" have entirely different histories.
e06c24ea21
...
0ee8179093
|
|
@ -3,7 +3,7 @@
|
||||||
import { useState } from "react"
|
import { useState } from "react"
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
|
|
||||||
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/subscribe"
|
const NEWSLETTER_API = "https://newsletter.jeffemmett.com/api/subscribe"
|
||||||
const LIST_UUID = "0c541da4-3f04-4e72-978a-5a328b43c995" // Alltornet list
|
const LIST_UUID = "0c541da4-3f04-4e72-978a-5a328b43c995" // Alltornet list
|
||||||
|
|
||||||
export function NewsletterSignup() {
|
export function NewsletterSignup() {
|
||||||
|
|
@ -19,7 +19,7 @@ export function NewsletterSignup() {
|
||||||
setStatus("loading")
|
setStatus("loading")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(NEWSLETTER_API, {
|
const response = await fetch(`${NEWSLETTER_API}/subscribe`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
services:
|
|
||||||
alltornet-prod:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
image: alltornet-prod:latest
|
|
||||||
container_name: alltornet-prod
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- traefik-public
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.alltornet.rule=Host(`alltor.net`) || Host(`www.alltor.net`)"
|
|
||||||
- "traefik.http.routers.alltornet.entrypoints=web"
|
|
||||||
- "traefik.http.services.alltornet.loadbalancer.server.port=80"
|
|
||||||
- "traefik.docker.network=traefik-public"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
traefik-public:
|
|
||||||
external: true
|
|
||||||
Loading…
Reference in New Issue