UNPKG

4.75 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../../lib/constants.ts"],"names":["NEXT_PROJECT_ROOT","__dirname","NEXT_PROJECT_ROOT_DIST","NEXT_PROJECT_ROOT_NODE_MODULES","NEXT_PROJECT_ROOT_DIST_CLIENT","NEXT_PROJECT_ROOT_DIST_SERVER","API_ROUTE","PAGES_DIR_ALIAS","DOT_NEXT_ALIAS","PUBLIC_DIR_MIDDLEWARE_CONFLICT","SSG_GET_INITIAL_PROPS_CONFLICT","SERVER_PROPS_GET_INIT_PROPS_CONFLICT","SERVER_PROPS_SSG_CONFLICT","STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR","SERVER_PROPS_EXPORT_ERROR","GSP_NO_RETURNED_VALUE","GSSP_NO_RETURNED_VALUE","UNSTABLE_REVALIDATE_RENAME_ERROR","GSSP_COMPONENT_MEMBER_ERROR","NON_STANDARD_NODE_ENV","SSG_FALLBACK_EXPORT_ERROR","ESLINT_DEFAULT_DIRS"],"mappings":"ivBAAA,0BACO,KAAMA,CAAAA,iBAAiB,CAAG,eAAKC,SAAL,CAAgB,IAAhB,CAAsB,IAAtB,CAA1B,C,4CACA,KAAMC,CAAAA,sBAAsB,CAAG,eAAKF,iBAAL,CAAwB,MAAxB,CAA/B,C,sDACA,KAAMG,CAAAA,8BAA8B,CAAG,eAC5CH,iBAD4C,CAE5C,cAF4C,CAAvC,C,sEAIA,KAAMI,CAAAA,6BAA6B,CAAG,eAC3CF,sBAD2C,CAE3C,QAF2C,CAAtC,C,oEAIA,KAAMG,CAAAA,6BAA6B,CAAG,eAC3CH,sBAD2C,CAE3C,QAF2C,CAAtC,CAKP;oEACO,KAAMI,CAAAA,SAAS,CAAG,gBAAlB,CAEP;AACA;4BACO,KAAMC,CAAAA,eAAe,CAAG,oBAAxB,C,wCACA,KAAMC,CAAAA,cAAc,CAAG,kBAAvB,C,sCAEA,KAAMC,CAAAA,8BAA8B,CAAI,+KAAxC,C,sEAEA,KAAMC,CAAAA,8BAA8B,CAAI,qGAAxC,C,sEAEA,KAAMC,CAAAA,oCAAoC,CAAI,yFAA9C,C,kFAEA,KAAMC,CAAAA,yBAAyB,CAAI,wHAAnC,C,4DAEA,KAAMC,CAAAA,0CAA0C,CAAI,yGAApD,C,8FAEA,KAAMC,CAAAA,yBAAyB,CAAI,yHAAnC,C,4DAEA,KAAMC,CAAAA,qBAAqB,CAChC,4FADK,C,oDAEA,KAAMC,CAAAA,sBAAsB,CACjC,gGADK,C,sDAGA,KAAMC,CAAAA,gCAAgC,CAC3C,qEACA,kCAFK,C,0EAIA,KAAMC,CAAAA,2BAA2B,CAAI,0JAArC,C,gEAEA,KAAMC,CAAAA,qBAAqB,CAAI,mNAA/B,C,oDAEA,KAAMC,CAAAA,yBAAyB,CAAI,0JAAnC,C,4DAEA,KAAMC,CAAAA,mBAAmB,CAAG,CACjC,OADiC,CAEjC,YAFiC,CAGjC,KAHiC,CAIjC,WAJiC,CAKjC,gBALiC,CAMjC,SANiC,CAA5B,C","sourcesContent":["import { join } from 'path'\nexport const NEXT_PROJECT_ROOT = join(__dirname, '..', '..')\nexport const NEXT_PROJECT_ROOT_DIST = join(NEXT_PROJECT_ROOT, 'dist')\nexport const NEXT_PROJECT_ROOT_NODE_MODULES = join(\n NEXT_PROJECT_ROOT,\n 'node_modules'\n)\nexport const NEXT_PROJECT_ROOT_DIST_CLIENT = join(\n NEXT_PROJECT_ROOT_DIST,\n 'client'\n)\nexport const NEXT_PROJECT_ROOT_DIST_SERVER = join(\n NEXT_PROJECT_ROOT_DIST,\n 'server'\n)\n\n// Regex for API routes\nexport const API_ROUTE = /^\\/api(?:\\/|$)/\n\n// Because on Windows absolute paths in the generated code can break because of numbers, eg 1 in the path,\n// we have to use a private alias\nexport const PAGES_DIR_ALIAS = 'private-next-pages'\nexport const DOT_NEXT_ALIAS = 'private-dot-next'\n\nexport const PUBLIC_DIR_MIDDLEWARE_CONFLICT = `You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict`\n\nexport const SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`\n\nexport const SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`\n\nexport const SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`\n\nexport const STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`\n\nexport const SERVER_PROPS_EXPORT_ERROR = `pages with \\`getServerSideProps\\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`\n\nexport const GSP_NO_RETURNED_VALUE =\n 'Your `getStaticProps` function did not return an object. Did you forget to add a `return`?'\nexport const GSSP_NO_RETURNED_VALUE =\n 'Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?'\n\nexport const UNSTABLE_REVALIDATE_RENAME_ERROR =\n 'The `unstable_revalidate` property is available for general use.\\n' +\n 'Please use `revalidate` instead.'\n\nexport const GSSP_COMPONENT_MEMBER_ERROR = `can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member`\n\nexport const NON_STANDARD_NODE_ENV = `You are using a non-standard \"NODE_ENV\" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env`\n\nexport const SSG_FALLBACK_EXPORT_ERROR = `Pages with \\`fallback\\` enabled in \\`getStaticPaths\\` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export`\n\nexport const ESLINT_DEFAULT_DIRS = [\n 'pages',\n 'components',\n 'lib',\n 'src/pages',\n 'src/components',\n 'src/lib',\n]\n"]}
\No newline at end of file