Skip to content

Commit b9c846e

Browse files
committed
updated readme with images
1 parent a8fc48b commit b9c846e

File tree

80 files changed

+923
-906
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+923
-906
lines changed

.serverless/Template.jamstackEcommerceNext.CloudFront.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"PATCH"
4646
],
4747
"lambda@edge": {
48-
"origin-request": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-uvywctp:6"
48+
"origin-request": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-uvywctp:8"
4949
}
5050
},
5151
"_next/data/*": {
@@ -57,8 +57,8 @@
5757
"GET"
5858
],
5959
"lambda@edge": {
60-
"origin-response": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-prvmxew:6",
61-
"origin-request": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-prvmxew:6"
60+
"origin-response": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-prvmxew:8",
61+
"origin-request": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-prvmxew:8"
6262
}
6363
}
6464
}
@@ -83,8 +83,8 @@
8383
"PATCH"
8484
],
8585
"lambda@edge": {
86-
"origin-request": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-prvmxew:6",
87-
"origin-response": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-prvmxew:6"
86+
"origin-request": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-prvmxew:8",
87+
"origin-response": "arn:aws:lambda:us-east-1:557458351015:function:2tnvtey-prvmxew:8"
8888
},
8989
"compress": true
9090
}

.serverless/Template.jamstackEcommerceNext.apiEdgeLambda.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "2tnvtey-uvywctp",
3-
"hash": "LzbcsD4sN5GzzwTMaTkbzVeGKvcVyZzeaIzd8Jk1uj0=",
3+
"hash": "oCGWxJxTC5Fpgs62OYdc5FRUa8cIEAXTkqUwFt6YiqE=",
44
"description": "API Lambda@Edge for Next CloudFront distribution",
55
"memory": 512,
66
"timeout": 10,

.serverless/Template.jamstackEcommerceNext.defaultEdgeLambda.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "2tnvtey-prvmxew",
3-
"hash": "9J37smmcZ/b+yzbK4Ln7aySHQIFF0NQAXPVA1oDqvb0=",
3+
"hash": "tFrfxcs+5zD9Kos/r/AOd0WhuNFCwY46n4d4qVtb7f8=",
44
"description": "Default Lambda@Edge for Next CloudFront distribution",
55
"memory": 512,
66
"timeout": 10,

.serverless_nextjs/api-lambda/pages/api/hello.js

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports =
8888
/******/
8989
/******/
9090
/******/ // Load entry module and return exports
91-
/******/ return __webpack_require__(__webpack_require__.s = "vxpS");
91+
/******/ return __webpack_require__(__webpack_require__.s = "HHwX");
9292
/******/ })
9393
/************************************************************************/
9494
/******/ ({
@@ -2751,6 +2751,51 @@ module.exports = {
27512751
};
27522752

27532753

2754+
/***/ }),
2755+
2756+
/***/ "HHwX":
2757+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
2758+
2759+
"use strict";
2760+
__webpack_require__.r(__webpack_exports__);
2761+
/* harmony import */ var next_plugin_loader_middleware_on_init_server___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GX0O");
2762+
/* harmony import */ var next_plugin_loader_middleware_on_error_server___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("KqAr");
2763+
/* harmony import */ var next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fkL1");
2764+
/* harmony import */ var next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2__);
2765+
/* harmony import */ var private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Skye");
2766+
var private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3___namespace = /*#__PURE__*/__webpack_require__.t("Skye", 1);
2767+
/* harmony import */ var next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("CpcB");
2768+
/* harmony import */ var next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__);
2769+
2770+
2771+
const { processEnv } = __webpack_require__("fXeI")
2772+
processEnv([])
2773+
2774+
2775+
const runtimeConfig = {}
2776+
2777+
2778+
2779+
2780+
2781+
2782+
2783+
const apiHandler = Object(next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__["getApiHandler"])({
2784+
pageModule: __webpack_require__("Nxiy"),
2785+
rewrites: private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3__.rewrites,
2786+
i18n: undefined,
2787+
page: "/api/hello",
2788+
basePath: "",
2789+
pageIsDynamic: false,
2790+
encodedPreviewProps: {previewModeId:"8ca4071395fd7be42f25ef07601128f6",previewModeSigningKey:"b58c448ea1558525e251f407aa843b59823d6e6ee709739a2d55a73dccb44046",previewModeEncryptionKey:"f8c7e4f6220225a49d1e1b726843228ce9706e4093a9c52efd14a0490ea0f671"},
2791+
experimental: {
2792+
onError: next_plugin_loader_middleware_on_error_server___WEBPACK_IMPORTED_MODULE_1__["default"],
2793+
initServer: next_plugin_loader_middleware_on_init_server___WEBPACK_IMPORTED_MODULE_0__["default"],
2794+
}
2795+
})
2796+
/* harmony default export */ __webpack_exports__["default"] = (apiHandler);
2797+
2798+
27542799
/***/ }),
27552800

27562801
/***/ "HpLx":
@@ -9913,51 +9958,6 @@ internals.has = function (ref, key) {
99139958
exports.__esModule=true;exports.pageNotFoundError=pageNotFoundError;exports.getPagePath=getPagePath;exports.requirePage=requirePage;exports.requireFontManifest=requireFontManifest;var _fs=__webpack_require__("mw/K");var _path=__webpack_require__("oyvS");var _constants=__webpack_require__("w7wo");var _normalizePagePath=__webpack_require__("w0zM");function pageNotFoundError(page){const err=new Error(`Cannot find module for page: ${page}`);err.code='ENOENT';return err;}function getPagePath(page,distDir,serverless,dev){const serverBuildPath=(0,_path.join)(distDir,serverless&&!dev?_constants.SERVERLESS_DIRECTORY:_constants.SERVER_DIRECTORY);const pagesManifest=__webpack_require__("PJv+")((0,_path.join)(serverBuildPath,_constants.PAGES_MANIFEST));try{page=(0,_normalizePagePath.denormalizePagePath)((0,_normalizePagePath.normalizePagePath)(page));}catch(err){console.error(err);throw pageNotFoundError(page);}if(!pagesManifest[page]){throw pageNotFoundError(page);}return(0,_path.join)(serverBuildPath,pagesManifest[page]);}function requirePage(page,distDir,serverless){const pagePath=getPagePath(page,distDir,serverless);if(pagePath.endsWith('.html')){return _fs.promises.readFile(pagePath,'utf8');}return __webpack_require__("PJv+")(pagePath);}function requireFontManifest(distDir,serverless){const serverBuildPath=(0,_path.join)(distDir,serverless?_constants.SERVERLESS_DIRECTORY:_constants.SERVER_DIRECTORY);const fontManifest=__webpack_require__("PJv+")((0,_path.join)(serverBuildPath,_constants.FONT_MANIFEST));return fontManifest;}
99149959
//# sourceMappingURL=require.js.map
99159960

9916-
/***/ }),
9917-
9918-
/***/ "vxpS":
9919-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
9920-
9921-
"use strict";
9922-
__webpack_require__.r(__webpack_exports__);
9923-
/* harmony import */ var next_plugin_loader_middleware_on_init_server___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GX0O");
9924-
/* harmony import */ var next_plugin_loader_middleware_on_error_server___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("KqAr");
9925-
/* harmony import */ var next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fkL1");
9926-
/* harmony import */ var next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2__);
9927-
/* harmony import */ var private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Skye");
9928-
var private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3___namespace = /*#__PURE__*/__webpack_require__.t("Skye", 1);
9929-
/* harmony import */ var next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("CpcB");
9930-
/* harmony import */ var next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__);
9931-
9932-
9933-
const { processEnv } = __webpack_require__("fXeI")
9934-
processEnv([])
9935-
9936-
9937-
const runtimeConfig = {}
9938-
9939-
9940-
9941-
9942-
9943-
9944-
9945-
const apiHandler = Object(next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__["getApiHandler"])({
9946-
pageModule: __webpack_require__("Nxiy"),
9947-
rewrites: private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3__.rewrites,
9948-
i18n: undefined,
9949-
page: "/api/hello",
9950-
basePath: "",
9951-
pageIsDynamic: false,
9952-
encodedPreviewProps: {previewModeId:"88c130bff33a7eb36193dae17dd710f8",previewModeSigningKey:"eb9a87c18b3cea16175c11ba813cbe40f61089fc41f7016c3a7fce76412232eb",previewModeEncryptionKey:"87c90bee6ce26214cb9ceb3d28df02ed0d202b9b5603288da6ea042776eec6d7"},
9953-
experimental: {
9954-
onError: next_plugin_loader_middleware_on_error_server___WEBPACK_IMPORTED_MODULE_1__["default"],
9955-
initServer: next_plugin_loader_middleware_on_init_server___WEBPACK_IMPORTED_MODULE_0__["default"],
9956-
}
9957-
})
9958-
/* harmony default export */ __webpack_exports__["default"] = (apiHandler);
9959-
9960-
99619961
/***/ }),
99629962

99639963
/***/ "w0zM":

.serverless_nextjs/api-lambda/pages/api/inventory.js

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports =
8888
/******/
8989
/******/
9090
/******/ // Load entry module and return exports
91-
/******/ return __webpack_require__(__webpack_require__.s = "WITr");
91+
/******/ return __webpack_require__(__webpack_require__.s = "Kq1j");
9292
/******/ })
9393
/************************************************************************/
9494
/******/ ({
@@ -3275,6 +3275,51 @@ if(shouldStripDefaultLocale&&acceptPreferredLocale!==defaultLocale){const previo
32753275

32763276
module.exports = require("http");
32773277

3278+
/***/ }),
3279+
3280+
/***/ "Kq1j":
3281+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
3282+
3283+
"use strict";
3284+
__webpack_require__.r(__webpack_exports__);
3285+
/* harmony import */ var next_plugin_loader_middleware_on_init_server___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GX0O");
3286+
/* harmony import */ var next_plugin_loader_middleware_on_error_server___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("KqAr");
3287+
/* harmony import */ var next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fkL1");
3288+
/* harmony import */ var next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2__);
3289+
/* harmony import */ var private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Skye");
3290+
var private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3___namespace = /*#__PURE__*/__webpack_require__.t("Skye", 1);
3291+
/* harmony import */ var next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("CpcB");
3292+
/* harmony import */ var next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__);
3293+
3294+
3295+
const { processEnv } = __webpack_require__("fXeI")
3296+
processEnv([])
3297+
3298+
3299+
const runtimeConfig = {}
3300+
3301+
3302+
3303+
3304+
3305+
3306+
3307+
const apiHandler = Object(next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__["getApiHandler"])({
3308+
pageModule: __webpack_require__("Dp5U"),
3309+
rewrites: private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3__.rewrites,
3310+
i18n: undefined,
3311+
page: "/api/inventory",
3312+
basePath: "",
3313+
pageIsDynamic: false,
3314+
encodedPreviewProps: {previewModeId:"8ca4071395fd7be42f25ef07601128f6",previewModeSigningKey:"b58c448ea1558525e251f407aa843b59823d6e6ee709739a2d55a73dccb44046",previewModeEncryptionKey:"f8c7e4f6220225a49d1e1b726843228ce9706e4093a9c52efd14a0490ea0f671"},
3315+
experimental: {
3316+
onError: next_plugin_loader_middleware_on_error_server___WEBPACK_IMPORTED_MODULE_1__["default"],
3317+
initServer: next_plugin_loader_middleware_on_init_server___WEBPACK_IMPORTED_MODULE_0__["default"],
3318+
}
3319+
})
3320+
/* harmony default export */ __webpack_exports__["default"] = (apiHandler);
3321+
3322+
32783323
/***/ }),
32793324

32803325
/***/ "KqAr":
@@ -4921,51 +4966,6 @@ module.exports = function (...args) {
49214966
};
49224967

49234968

4924-
/***/ }),
4925-
4926-
/***/ "WITr":
4927-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
4928-
4929-
"use strict";
4930-
__webpack_require__.r(__webpack_exports__);
4931-
/* harmony import */ var next_plugin_loader_middleware_on_init_server___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GX0O");
4932-
/* harmony import */ var next_plugin_loader_middleware_on_error_server___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("KqAr");
4933-
/* harmony import */ var next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fkL1");
4934-
/* harmony import */ var next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_dist_next_server_server_node_polyfill_fetch__WEBPACK_IMPORTED_MODULE_2__);
4935-
/* harmony import */ var private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("Skye");
4936-
var private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3___namespace = /*#__PURE__*/__webpack_require__.t("Skye", 1);
4937-
/* harmony import */ var next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("CpcB");
4938-
/* harmony import */ var next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__);
4939-
4940-
4941-
const { processEnv } = __webpack_require__("fXeI")
4942-
processEnv([])
4943-
4944-
4945-
const runtimeConfig = {}
4946-
4947-
4948-
4949-
4950-
4951-
4952-
4953-
const apiHandler = Object(next_dist_build_webpack_loaders_next_serverless_loader_api_handler__WEBPACK_IMPORTED_MODULE_4__["getApiHandler"])({
4954-
pageModule: __webpack_require__("Dp5U"),
4955-
rewrites: private_dot_next_routes_manifest_json__WEBPACK_IMPORTED_MODULE_3__.rewrites,
4956-
i18n: undefined,
4957-
page: "/api/inventory",
4958-
basePath: "",
4959-
pageIsDynamic: false,
4960-
encodedPreviewProps: {previewModeId:"88c130bff33a7eb36193dae17dd710f8",previewModeSigningKey:"eb9a87c18b3cea16175c11ba813cbe40f61089fc41f7016c3a7fce76412232eb",previewModeEncryptionKey:"87c90bee6ce26214cb9ceb3d28df02ed0d202b9b5603288da6ea042776eec6d7"},
4961-
experimental: {
4962-
onError: next_plugin_loader_middleware_on_error_server___WEBPACK_IMPORTED_MODULE_1__["default"],
4963-
initServer: next_plugin_loader_middleware_on_init_server___WEBPACK_IMPORTED_MODULE_0__["default"],
4964-
}
4965-
})
4966-
/* harmony default export */ __webpack_exports__["default"] = (apiHandler);
4967-
4968-
49694969
/***/ }),
49704970

49714971
/***/ "Y4gF":
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":3,"pages404":true,"basePath":"","redirects":[],"rewrites":[],"headers":[],"dynamicRoutes":[{"page":"/category/[name]","regex":"^/category/([^/]+?)(?:/)?$","routeKeys":{"name":"name"},"namedRegex":"^/category/(?<name>[^/]+?)(?:/)?$"},{"page":"/product/[name]","regex":"^/product/([^/]+?)(?:/)?$","routeKeys":{"name":"name"},"namedRegex":"^/product/(?<name>[^/]+?)(?:/)?$"}],"dataRoutes":[{"page":"/","dataRouteRegex":"^/_next/data/TqYdJ1zlV7FUQu68\\-j4sW/index.json$"},{"page":"/categories","dataRouteRegex":"^/_next/data/TqYdJ1zlV7FUQu68\\-j4sW/categories.json$"},{"page":"/category/[name]","routeKeys":{"name":"name"},"dataRouteRegex":"^/_next/data/TqYdJ1zlV7FUQu68\\-j4sW/category/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/TqYdJ1zlV7FUQu68\\-j4sW/category/(?<name>[^/]+?)\\.json$"},{"page":"/product/[name]","routeKeys":{"name":"name"},"dataRouteRegex":"^/_next/data/TqYdJ1zlV7FUQu68\\-j4sW/product/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/TqYdJ1zlV7FUQu68\\-j4sW/product/(?<name>[^/]+?)\\.json$"}]}
1+
{"version":3,"pages404":true,"basePath":"","redirects":[],"rewrites":[],"headers":[],"dynamicRoutes":[{"page":"/category/[name]","regex":"^/category/([^/]+?)(?:/)?$","routeKeys":{"name":"name"},"namedRegex":"^/category/(?<name>[^/]+?)(?:/)?$"},{"page":"/product/[name]","regex":"^/product/([^/]+?)(?:/)?$","routeKeys":{"name":"name"},"namedRegex":"^/product/(?<name>[^/]+?)(?:/)?$"}],"dataRoutes":[{"page":"/","dataRouteRegex":"^/_next/data/wOf8ALB4AKlRrBc17Xf6a/index.json$"},{"page":"/categories","dataRouteRegex":"^/_next/data/wOf8ALB4AKlRrBc17Xf6a/categories.json$"},{"page":"/category/[name]","routeKeys":{"name":"name"},"dataRouteRegex":"^/_next/data/wOf8ALB4AKlRrBc17Xf6a/category/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/wOf8ALB4AKlRrBc17Xf6a/category/(?<name>[^/]+?)\\.json$"},{"page":"/product/[name]","routeKeys":{"name":"name"},"dataRouteRegex":"^/_next/data/wOf8ALB4AKlRrBc17Xf6a/product/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/wOf8ALB4AKlRrBc17Xf6a/product/(?<name>[^/]+?)\\.json$"}]}

.serverless_nextjs/assets/_next/data/TqYdJ1zlV7FUQu68-j4sW/categories.json renamed to .serverless_nextjs/assets/_next/data/wOf8ALB4AKlRrBc17Xf6a/categories.json

File renamed without changes.

0 commit comments

Comments
 (0)