diff --git a/previews/app/routes/products.$productName.tsx b/previews/app/routes/products.$productName.tsx index 4a479c17..ee6b826f 100644 --- a/previews/app/routes/products.$productName.tsx +++ b/previews/app/routes/products.$productName.tsx @@ -1,12 +1,12 @@ import type { LoaderFunctionArgs } from '@remix-run/node'; import { useLoaderData } from '@remix-run/react'; -import { useState, useEffect } from 'react'; +import { useState } from 'react'; import { Resource } from 'sst'; import products from '~/data/products.json'; declare global { interface Window { - SmileIdentity: Function; + SmileIdentity: function; } } @@ -83,7 +83,7 @@ export default function Product() { ...config, document_ids: [config.document_id], document_capture_modes: ( - (config.document_capture_modes as String) ?? '' + (config.document_capture_modes as string) ?? '' ).split(','), partner_details: { partner_id: config.partner_id, diff --git a/previews/sst-env.d.ts b/previews/sst-env.d.ts index 5d2f7ec9..ddd323c1 100644 --- a/previews/sst-env.d.ts +++ b/previews/sst-env.d.ts @@ -1,33 +1,33 @@ /* tslint:disable */ /* eslint-disable */ -import "sst" -declare module "sst" { +import 'sst'; +declare module 'sst' { export interface Resource { - "CallbackUrl": { - "type": "sst.sst.Secret" - "value": string - } - "GetToken": { - "name": string - "type": "sst.aws.Function" - "url": string - } - "PartnerId": { - "type": "sst.sst.Secret" - "value": string - } - "PreviewApp": { - "type": "sst.aws.Remix" - "url": string - } - "SmileIdApiKey": { - "type": "sst.sst.Secret" - "value": string - } - "SmileIdEnvironment": { - "type": "sst.sst.Secret" - "value": string - } + CallbackUrl: { + type: 'sst.sst.Secret'; + value: string; + }; + GetToken: { + name: string; + type: 'sst.aws.Function'; + url: string; + }; + PartnerId: { + type: 'sst.sst.Secret'; + value: string; + }; + PreviewApp: { + type: 'sst.aws.Remix'; + url: string; + }; + SmileIdApiKey: { + type: 'sst.sst.Secret'; + value: string; + }; + SmileIdEnvironment: { + type: 'sst.sst.Secret'; + value: string; + }; } } -export {} +export {}; diff --git a/previews/sst.config.ts b/previews/sst.config.ts index eaed049d..0fa2d0a4 100644 --- a/previews/sst.config.ts +++ b/previews/sst.config.ts @@ -1,5 +1,3 @@ -/// - export default $config({ app(input) { return {