mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
changes for prod
This commit is contained in:
parent
7e939a54f2
commit
34451a7ad7
3 changed files with 10 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
|||
name = "dev-cf-ai-backend"
|
||||
name = "new-cf-ai-backend"
|
||||
main = "src/index.ts"
|
||||
compatibility_date = "2024-02-23"
|
||||
node_compat = true
|
||||
|
|
@ -31,8 +31,8 @@ binding = "AI"
|
|||
|
||||
[[kv_namespaces]]
|
||||
binding = "KV"
|
||||
id = "a68a8182f08e46a1b5d11588fdda68dc"
|
||||
preview_id = "a68a8182f08e46a1b5d11588fdda68dc"
|
||||
id = "569c3f2a510943729019f5d1f798e7d9"
|
||||
preview_id = "569c3f2a510943729019f5d1f798e7d9"
|
||||
|
||||
[placement]
|
||||
mode = "smart"
|
||||
|
|
@ -50,5 +50,5 @@ mode = "smart"
|
|||
|
||||
[[d1_databases]]
|
||||
binding = "DATABASE"
|
||||
database_name = "staging-d1-supermemory"
|
||||
database_id = "40a3bb06-82bd-42f1-aef4-fde04f3635c5"
|
||||
database_name = "prod-d1-supermemory"
|
||||
database_id = "f527a727-c472-41d4-8eaf-3d7ba0f2f395"
|
||||
|
|
@ -4,9 +4,6 @@ import("./base.css");
|
|||
|
||||
setTimeout(initial, 1000);
|
||||
|
||||
const TAILWIND_URL =
|
||||
"https://cdn.jsdelivr.net/npm/tailwindcss@^2.0/dist/tailwind.min.css";
|
||||
|
||||
const appendTailwindStyleData = (shadowRoot: ShadowRoot) => {
|
||||
const styleSheet = document.createElement("style");
|
||||
|
||||
|
|
@ -20,14 +17,6 @@ const appendTailwindStyleData = (shadowRoot: ShadowRoot) => {
|
|||
});
|
||||
};
|
||||
|
||||
const appendTailwindStyleLink = (shadowRoot: ShadowRoot) => {
|
||||
// Import Tailwind CSS and inject it into the shadow DOM
|
||||
const styleSheet = document.createElement("link");
|
||||
styleSheet.rel = "stylesheet";
|
||||
styleSheet.href = TAILWIND_URL;
|
||||
shadowRoot.appendChild(styleSheet);
|
||||
};
|
||||
|
||||
function initial() {
|
||||
// Create a new div element to host the shadow root.
|
||||
// Styles for this div is in `content/content.css`
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
name = "dev-supermemory"
|
||||
name = "supermemory"
|
||||
compatibility_date = "2024-03-29"
|
||||
compatibility_flags = [ "nodejs_compat" ]
|
||||
pages_build_output_dir = ".vercel/output/static"
|
||||
|
|
@ -26,14 +26,13 @@ bucket_name = "dev-r2-anycontext"
|
|||
|
||||
[[d1_databases]]
|
||||
binding = "DATABASE"
|
||||
database_name = "supermemlocal"
|
||||
database_id = "0f93c990-72fb-489c-8563-57a7bb18dc43"
|
||||
|
||||
database_name = "dev-d1-anycontext"
|
||||
database_id = "fc562605-157a-4f60-b439-2a24ffed5b4c"
|
||||
|
||||
[[env.production.d1_databases]]
|
||||
binding = "DATABASE"
|
||||
database_name = "staging-d1-supermemory"
|
||||
database_id = "40a3bb06-82bd-42f1-aef4-fde04f3635c5"
|
||||
database_name = "prod-d1-supermemory"
|
||||
database_id = "f527a727-c472-41d4-8eaf-3d7ba0f2f395"
|
||||
|
||||
[env.preview.ai]
|
||||
binding = "AI"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue