mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
打包问题
This commit is contained in:
@@ -30,7 +30,7 @@ const Slug = props => {
|
||||
|
||||
/**
|
||||
* 验证文章密码
|
||||
* @param {*} result
|
||||
* @param {*} passInput
|
||||
*/
|
||||
const validPassword = passInput => {
|
||||
if (!post) {
|
||||
@@ -129,7 +129,7 @@ export async function getStaticProps({ params: { prefix }, locale }) {
|
||||
fullSlug += '.html'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 在列表内查找文章
|
||||
props.post = props?.allPages?.find(p => {
|
||||
return (
|
||||
|
||||
@@ -5,11 +5,9 @@ import Slug from '../[prefix]'
|
||||
|
||||
/**
|
||||
/**
|
||||
* 服务端接收参数处理
|
||||
* @param {*} ctx
|
||||
* @returns
|
||||
*/
|
||||
export const getServerSideProps = async ctx => {
|
||||
export const getStaticProps = async () => {
|
||||
const from = `auth`
|
||||
const props = await getGlobalData({ from })
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve"
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user