Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions amplify/data/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,23 @@ const schema = a
allow.ownerDefinedIn('owner').to(['update', 'delete', 'read', 'create']),
allow.guest().to(['read']),
]),

StoreTemplate: a
.model({
storeId: a.string().required(),
domain: a.string().required(),
templateKey: a.string().required(),
templateData: a.json().required(),
isActive: a.boolean().required(),
lastUpdated: a.datetime(),
owner: a.string().required(),
})
.identifier(['storeId'])
.secondaryIndexes(index => [index('domain')])
.authorization(allow => [
allow.ownerDefinedIn('owner').to(['update', 'delete', 'read', 'create']),
allow.guest().to(['read']),
]),
})
.authorization(allow => [
allow.resource(postConfirmation),
Expand Down
6 changes: 3 additions & 3 deletions app/(setup-layout)/first-steps/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export default function FirstStepsPage() {
<div className="min-h-screen flex items-center justify-center">
<MultiStepLoader
loadingStates={[
{ text: 'Configurando tu tienda' },
{ text: 'Creando tu tienda' },
{ text: 'Configurando tu tienda' },
{ text: 'Listo' },
{ text: 'Configurando template engine' },
{ text: 'Preparando tu tienda online' },
{ text: '¡Listo para usar!' },
]}
loading={true}
/>
Expand Down
7 changes: 2 additions & 5 deletions next.config.ts → next.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/** @type {import('next').NextConfig} */
const nextConfig = {

// Configure domains for image optimization
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'images.unsplash.com',
port: '',
pathname: '/**',
},
{
Expand All @@ -15,24 +16,20 @@ const nextConfig = {
{
protocol: 'https',
hostname: '*.s3.amazonaws.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: '*.s3.*.amazonaws.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'd1etr7t5j9fzio.cloudfront.net',
port: '',
},
{
protocol: 'https',
hostname: '*cdn.fasttify.com',
port: '',
pathname: '/**',
},
],
Expand Down
30 changes: 30 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"framer-motion": "^12.0.5",
"gsap": "^3.12.7",
"input-otp": "^1.4.2",
"liquidjs": "^10.21.1",
Comment thread
Stivenjs marked this conversation as resolved.
"lottie-react": "^2.4.1",
"lucide-react": "^0.471.2",
"motion": "^11.18.2",
Expand Down