2
0

♻️ Remove references to old s3 URLs

This commit is contained in:
Baptiste Arnaud
2023-12-06 07:30:47 +01:00
parent 61f7f67bf3
commit c2fc2df735
16 changed files with 37 additions and 1031 deletions

View File

@@ -1,9 +1,18 @@
import { env } from '@typebot.io/env'
import Head from 'next/head'
const getOrigin = () => {
if (typeof window !== 'undefined') {
return window.location.origin
}
return env.NEXTAUTH_URL
}
export const Seo = ({
title,
description = 'Create and publish conversational forms that collect 4 times more answers and feel native to your product',
imagePreviewUrl = 'https://app.typebot.io/site-preview.png',
imagePreviewUrl = `${getOrigin()}/images/og.png`,
}: {
title: string
description?: string

View File

@@ -1,6 +1,15 @@
import { env } from '@typebot.io/env'
import { ThemeTemplate } from '@typebot.io/schemas'
import { BackgroundType } from '@typebot.io/schemas/features/typebot/theme/constants'
const getOrigin = () => {
if (typeof window !== 'undefined') {
return window.location.origin
}
return env.NEXTAUTH_URL
}
export const galleryTemplates: Pick<ThemeTemplate, 'id' | 'name' | 'theme'>[] =
[
{
@@ -111,8 +120,7 @@ export const galleryTemplates: Pick<ThemeTemplate, 'id' | 'name' | 'theme'>[] =
font: 'Montserrat',
background: {
type: BackgroundType.IMAGE,
content:
'https://s3.fr-par.scw.cloud/typebot/public/typebots/hlmywyje0sbz1lfogu86pyks/blocks/ssmyt084oosa17cggqd8kfg9',
content: getOrigin() + '/images/backgrounds/brightRain.jpeg',
},
},
},
@@ -136,8 +144,7 @@ export const galleryTemplates: Pick<ThemeTemplate, 'id' | 'name' | 'theme'>[] =
font: 'Raleway',
background: {
type: BackgroundType.IMAGE,
content:
'https://s3.fr-par.scw.cloud/typebot/public/typebots/hlmywyje0sbz1lfogu86pyks/blocks/uc2dyf63eeogaivqzm4z2hdb',
content: getOrigin() + '/images/backgrounds/rayOfLights.jpeg',
},
},
},