Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat: codeblitz support code browsing #64

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

AhkunTa
Copy link

@AhkunTa AhkunTa commented Dec 15, 2023

use codeblitz to support code browsing

2023-12-15.18.25.46.mov

Copy link

vercel bot commented Dec 15, 2023

@AhkunTa is attempting to deploy a commit to the cnpmweb Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Dec 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cnpmweb ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 15, 2023 3:12pm

@elrrrrrrr
Copy link
Member

👍🏻 赏心悦目

@elrrrrrrr
Copy link
Member

image

vercel preivew 里好像没加载出来,需要什么额外配置吗?

@AhkunTa
Copy link
Author

AhkunTa commented Dec 18, 2023

image

vercel preivew 里好像没加载出来,需要什么额外配置吗?

图片应该不影响, 可能组件的懒加载引起的 具体问题我再看下

@hacke2
Copy link

hacke2 commented Dec 18, 2023

@elrrrrrrr @AhkunTa 还需要 native 版的吗?是不是默认用 CodeBlitz ?

@elrrrrrrr
Copy link
Member

@elrrrrrrr @AhkunTa 还需要 native 版的吗?是不是默认用 CodeBlitz ?

感觉只用保留 CodeBlitz 就行? vercel 预览异常再帮忙定位下 🙏🏻

Copy link

socket-security bot commented Feb 2, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@AhkunTa
Copy link
Author

AhkunTa commented Feb 4, 2024

问题似乎是动态引入的问题 本地可以正常load组件
但部署到 vercel 后并不会返回值
相关代码

import dynamic from 'next/dynamic';

export const DynamicIDEComponent = dynamic(
  {
    loader: async () => {
      console.log('loading start IDE');
      const IDEModule = await import('./IDE');
      console.log('loading end IDE');
      return IDEModule.IDE;
    },
    ssr: false,
  },
  {
    loading: () => <div>loading...</div>,
    ssr: false,
  },
);

本地环境正常 loading end
截屏2024-02-04 17 49 21

用 vercel 部署后 预览有问题 可以用这个地址预览 https://cnpmweb-git-feat-support-codeblitz-ahkuntas-projects.vercel.app?_vercel_share=lbZD9YzvjYlGCw9SJQWKW9EFLMZiKNcE

截屏2024-02-04 17 52 43

具体问题我这边再看下 实在不行 换一种方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants