Initial boiler plate project
This commit is contained in:
42
node_modules/next/dist/pages/_app.js
generated
vendored
Normal file
42
node_modules/next/dist/pages/_app.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return App;
|
||||
}
|
||||
});
|
||||
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
||||
const _jsxruntime = require("react/jsx-runtime");
|
||||
const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
||||
const _utils = require("../shared/lib/utils");
|
||||
/**
|
||||
* `App` component is used for initialize of pages. It allows for overwriting and full control of the `page` initialization.
|
||||
* This allows for keeping state between navigation, custom error handling, injecting additional data.
|
||||
*/ async function appGetInitialProps(param) {
|
||||
let { Component, ctx } = param;
|
||||
const pageProps = await (0, _utils.loadGetInitialProps)(Component, ctx);
|
||||
return {
|
||||
pageProps
|
||||
};
|
||||
}
|
||||
class App extends _react.default.Component {
|
||||
render() {
|
||||
const { Component, pageProps } = this.props;
|
||||
return /*#__PURE__*/ (0, _jsxruntime.jsx)(Component, {
|
||||
...pageProps
|
||||
});
|
||||
}
|
||||
}
|
||||
App.origGetInitialProps = appGetInitialProps;
|
||||
App.getInitialProps = appGetInitialProps;
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=_app.js.map
|
||||
Reference in New Issue
Block a user