fix: only use umami in prod and remove UNIQUE modifier
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
-- E.G. email-verifications, password-resets, unsubscribe-from-newsletter etc.
|
||||
CREATE TABLE user_token (
|
||||
user_uuid TEXT NOT NULL UNIQUE,
|
||||
user_uuid TEXT NOT NULL,
|
||||
|
||||
type TEXT NOT NULL,
|
||||
token TEXT NOT NULL UNIQUE PRIMARY KEY,
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package template
|
||||
|
||||
import "me-fit/utils"
|
||||
|
||||
templ Layout(slot templ.Component, user templ.Component) {
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@@ -9,7 +11,9 @@ templ Layout(slot templ.Component, user templ.Component) {
|
||||
<link rel="icon" href="/static/favicon.svg"/>
|
||||
<link rel="stylesheet" href="/static/css/tailwind.css"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
if utils.Environment == "prod" {
|
||||
<script defer src="https://umami.me-fit.eu/script.js" data-website-id="3c8efb09-44e4-4372-8a1e-c3bc675cd89a"></script>
|
||||
}
|
||||
<script src="/static/js/htmx.min.js"></script>
|
||||
<script src="/static/js/toast.js"></script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user