Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 22 days ago

Responsive Bookmark landing Page

react, tailwind-css, typescript
Petre_Coder•260
@Petre223
A solution to the Bookmark landing page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

Solution Retrospective: Netlify Deployment Challenges

What I’m Most Proud Of

  1. Debugging Skills – I learned how to interpret Netlify build logs effectively, identifying both ESLint errors and configuration mismatches.
  2. CI/CD Understanding – Now I better grasp how `process. env.CI affects builds, and why warnings become errors in deployment.
  3. React Build Process – I confirmed that create-react-app outputs to /build (not /dist), a key insight for fixing deployment.

What I’d Do Differently Next Time

  1. Pre-Deployment Testing – Before pushing to Netlify, I’d:
    • Run npm run build locally to ensure no ESLint warnings.
    • Verify the correct output folder (build/ vs. dist/).
  2. Use a netlify.toml File – Instead of relying on Netlify’s UI settings, I’d define:
    [build]
      command = "npm run build"
      publish = "build"  # Explicitly set for CRA
    
    to avoid misconfigurations.
  3. Stricter Local ESLint Rules—To catch issues earlier, I’d match my local ESLint config to Netlify’s CI behaviour ("no-unused-vars": "error").

Where I’d Like Support

  • Optimising Builds: Can I skip ESLint in production builds safely?
  • Alternative Deployment Strategies: Should I use vite instead of CRA for faster builds?
  • Netlify Caching: How can I speed up repeated deployments?

Sharing this helps others avoid similar pitfalls! 🚀 Would love feedback or additional tips from the community.

What challenges did you encounter, and how did you overcome them?
  1. Netlify Couldn’t Find the Build Directory Problem: Netlify expected files in /dist, but create-react-app outputs to /build.

Solution:

Updated Netlify’s "Publish directory" from dist to build.

Alternatively, added Netlify.toml file to explicitly define:

toml [build] publish = "build" 2. ESLint Warnings Failed the Build Problem: Netlify treats warnings as errors in CI (process.env.CI = true).

Solution:

Fixed the code: Removed unused variables (e.g., 'use' in Tabs.js).

Temporary workaround: Disabled strict CI checks by setting CI=false in the build command.

Long-term fix: Adjusted ESLint rules in .eslintrc.json to downgrade no-unused-vars to "warn".

  1. Debugging Opaque Build Errors Problem: Netlify’s logs showed exit code 2 without clear details.

Solution:

Ran npm run build locally to replicate the error.

Checked the full error output in the terminal (which was more descriptive than Netlify’s UI).

  1. Configuration Mismatches Problem: Default Netlify settings didn’t align with create-react-app.

Solution:

Verified local vs. production behaviour by comparing package.json scripts.

Explicitly defined settings in Netlify.toml to override defaults.

Key Takeaways Test builds locally first to catch issues early.

Always check the actual build output folder (e.g., build/ vs. dist/).

Configure ESLint to match CI behaviour to avoid surprises.

By breaking down each error methodically, I turned deployment hurdles into learning opportunities! 🛠️ Would love to hear how others handled similar issues.

What specific areas of your project would you like help with?
  1. Optimising the Build Pipeline Question: Is there a way to speed up Netlify builds for a create-react-app project?

Specific Needs:

Can I safely skip ESLint in production builds without risking code quality?

Are there caching strategies (e.g., node_modules caching) to reduce build times?

  1. Modernising the Stack Question: Should I migrate from create-react-app (CRA) to Vite?

Specific Needs:

How difficult is the migration for a simple static site?

Would Vite’s faster builds outweigh the configuration effort?

  1. Improving Error Handling Question: How can I make Netlify’s error logs more actionable?

Specific Needs:

Tools or scripts to parse build logs for clearer feedback.

Best practices for setting up custom error tracking (e.g., Sentry for build failures).

  1. Deployment Best Practices Question: Are there better ways to structure my project for deployment?

Specific Needs:

Should I use a monorepo setup if I add backend services later?

How to handle environment variables securely in Netlify?

  1. Performance Tweaks Question: What are the lowest-hanging fruit for improving Lighthouse scores?

Specific Needs:

Critical CSS extraction for a static React site.

Optimal image optimisation pipelines (e.g., Netlify plugins vs. local pre-processing).

  1. Community Wisdom Open Question: What’s the most counterintuitive lesson you’ve learned from deploying React apps?

Why This Matters: Clearer builds, faster deploys, and fewer surprises! If you’ve tackled any of these, I’d love your insights. 🚀

(For context: This is a static React landing page with minimal dependencies, but I’m planning to scale complexity over time.)

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • P
    Thomas TS•1,270
    @ttsoares
    Posted 22 days ago

    Nice solution!

    Some comments:

    • Just place type="email in a input do not mean a real validation of the content. For example: qqq@www will be accepted. In general, we use a regular expression to guarantee that, at least, the test has xxx@yyy.zz format.
    • At 375px window width your FAQ need some marge, left and right.
    • The Tailwind style of dealing the media queries is to use in the classes things like: lg:font-xl. You are dealing with that in files like index.css with : @media (min-width: 1024px) {...}

    Hope that this helps.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit 1st-party linked stylesheets, and styles within <style> tags.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub