Giter VIP home page Giter VIP logo

Comments (13)

satnaing avatar satnaing commented on June 12, 2024

Can you provide more information?
It might be better if I can reproduce the bug. At the moment, I can't see what went wrong.

Maybe the build setting is incorrect. Here's my build setting.
image

from satnaing.dev.

rifat-ahmed-rar avatar rifat-ahmed-rar commented on June 12, 2024

If i follow this command to deploy from GitHub, it's show me your portfolio. But if i manually use npm run build command and paste to create new site. Then show me that picture.

from satnaing.dev.

satnaing avatar satnaing commented on June 12, 2024

This might be because of environment variables that I've set for dynamic purpose.

In your netlify project, put the following env variables.
NEXT_PUBLIC_EMAIL='[email protected]'
NEXT_PUBLIC_URL=https://yoursitename.netlify.app

from satnaing.dev.

rifat-ahmed-rar avatar rifat-ahmed-rar commented on June 12, 2024

Do i use this code,
script id='admin-config-script' type='text/javascript'
var env =
NEXT_PUBLIC_EMAIL="@gmail.com",
NEXT_PUBLIC_URL= "https://netlify.appp",
today new problem for deploy GitHub, permission error and fail to run build.
first time using notlify and JavaScript , sorry for disturb you and message you again and again.

from satnaing.dev.

satnaing avatar satnaing commented on June 12, 2024

If you could run npm i && npm run build in your local and then the problem occurs only on deployment, the problem might be environment variable.

So, follow the following steps in your netlify project. Go to Site Settings > Build & deploy > Environment. Then create new environment variables as shown in the picture. Just two environment variables would be enough for you. (NEXT_PUBLIC_EMAIL & NEXT_PUBLIC_URL)
image

from satnaing.dev.

rifat-ahmed-rar avatar rifat-ahmed-rar commented on June 12, 2024

https://user-images.githubusercontent.com/57106394/205477019-aaf0b1a6-496a-48fd-8d64-87d60834b441.PNG
https://user-images.githubusercontent.com/57106394/205477037-bc2b2c1d-777b-4c19-bd29-f1aeeb9a0465.PNG

from satnaing.dev.

satnaing avatar satnaing commented on June 12, 2024

Yes, you can insert your env variable in there.

Replace https://satnaing.dev with your site url.
image

from satnaing.dev.

rifat-ahmed-rar avatar rifat-ahmed-rar commented on June 12, 2024

Sorry, I don't success,
Capture1
Capture2
Capture3
Code : https://github.com/rifat-ahmed-rar/blog
remodify code:
Capture4
code: https://github.com/rifat-ahmed-rar/satnaing.dev

from satnaing.dev.

satnaing avatar satnaing commented on June 12, 2024

Hello @rifat-ahmed-rar

Sorry for late reply. I've been busy these days. Did you manage to deploy the site? I went to your site URL and found out that it was working as expected.

from satnaing.dev.

rifat-ahmed-rar avatar rifat-ahmed-rar commented on June 12, 2024

Hello @satnaing
It's ok. Actually I don't hope quickly answer. It's work . but problem is it's show your portfolio. although I chance information.

from satnaing.dev.

satnaing avatar satnaing commented on June 12, 2024

I don't quite get it. Can u elaborate plz?
I checked your deployed site's meta info and OG images and it is working fine.
What I mean is that if your env variables didn't work, the OG information would be incorrect. The image ur and site url are correct now.

Juz Ss of OG data

You can make some changes to the code and the changes will be able to see after it is deployed successfully. As an example, you can see my test deployed site. I made a change in the banner and my change is reflecting after deployment.

from satnaing.dev.

rifat-ahmed-rar avatar rifat-ahmed-rar commented on June 12, 2024

Capture5
Thank you very much for your help and allow me to use. Actually manually 1. npm run build and drop in app, show me error. best option, use GitHub. here 2. GitHub don't allow empty folder, but content folder empty. that's why automatically delete that folder. on other hand, without content folder code doesn't work. 3. in this time, i use without chance folder.

from satnaing.dev.

satnaing avatar satnaing commented on June 12, 2024

Oh okay.
If you've resolved the problem, I'll close this issue. You can drop a comment if you still have some issues.

from satnaing.dev.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.