This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface Schema$Product { | |
/** | |
* Additional URLs of images of the item. | |
*/ | |
additionalImageLinks?: string[] | null; | |
/** | |
* Additional cut of the item. Used together with size_type to represent combined size types for apparel items. | |
*/ | |
additionalSizeType?: string | null; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mongoose from 'mongoose' | |
import mongodbUri from './config' | |
// mongoose.connect(mongodbUri) | |
const connected = false | |
export default async function connect() { | |
if (connected) return | |
await mongoose.connect(mongodbUri) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// append to client.js | |
// Facebook Pixel Code | |
/* eslint-disable */ | |
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? | |
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; | |
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; | |
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, | |
document,'script','https://connect.facebook.net/en_US/fbevents.js'); | |
fbq('init', `${pixelId}`, { | |
em: 'insert_email_variable,' |