File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "type" : " module" ,
55 "private" : true ,
66 "scripts" : {
7- "dev" : " bun alchemy dev --stage dev"
7+ "dev" : " bun alchemy dev --stage dev" ,
8+ "deploy" : " bun alchemy deploy --stage demo"
89 },
910 "devDependencies" : {
1011 "@types/bun" : " latest" ,
Original file line number Diff line number Diff line change 11import type { ReactNode } from "react" ;
22import styles from "lytx/styles.css?url" ;
3+ import { IS_DEV } from "rwsdk/constants" ;
34
45export function Document ( { children } : { children : ReactNode } ) {
56 return (
@@ -11,6 +12,8 @@ export function Document({ children }: { children: ReactNode }) {
1112 < body className = "overflow-x-hidden" >
1213 { children }
1314 < script > import("/src/client.tsx")</ script >
15+
16+ { ! IS_DEV && < script src = "https://demo.lytx.io/lytx.js?account=f6nexy5nspoayffsbw8te4bo" > </ script > }
1417 </ body >
1518 </ html >
1619 ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { Document } from "./components/document";
99export { SyncDurableObject , SiteDurableObject } ;
1010
1111const app = createLytxApp ( {
12+ cache : { persistHistoricalAnalyticsToEventsKv : true } ,
1213 db : {
1314 dbAdapter : "sqlite" ,
1415 eventStore : "durable_objects" ,
You can’t perform that action at this time.
0 commit comments