Mulitlingual Service Based Website

Published on 4/11/2025
Service Based Business


This prompt was created by Income Stream Surfers on Youtube https://www.youtube.com/@Incomestreamsurfers

- Run: npx create-next-app@14.2.3 my-next-app
// the reason we are using an old next.js version is because Claude was likely trained on its documentation. You may choose to run @latest instead.
- Replace all test in the XML tags with text unique to your website
- Keep all XML tags (like <tag>content</tag>) exactly as they are

I tried this for a friends freight company and it worked quite well, I'd give it a 79/100. it cost around 6USD and i used 3.7 Sonnet with Cline.

Prompt Text

You are inside a new nextjs project ok? it's inside my-next-app, you will have to cd into this directory to do things, i am on windows powershell so don't use && symbols

I want to create a nextjs project, statically generated, you are already inside a fresh nextjs project and there are images inside a folder called /public/images/, it is a service based website, for a company that offer these services <services>, the website should be in <languages> and the website should be properly split with href language tags before the main slug of the url, for example example.com/fr/example/example. 

Use the images in an intelligent way to build a modern`website with good coloring schemes and fonts and other elements which I will leave up to your discretion to plan and then implement a good, intelligent color and font and feel to it

The homepage  should be automatically set to /en/ and a language switcher to /it/ - make sure the homepage when opening the project does not just simply show the boilerplate of nextjs



Use <service_information> to understand specifics of the business

For languages, ensure to implement the SEO and keywords etc for both languages, and not just one of the languages - Also URL slugs must be translated 

The company is offering these services in <locations>

The idea is to generate all possible pages, combining both <services> with <locations> to create location based SEO services.

For service + location pages try your best to create a modular (you can use svg icons to make this work) set up, with at least 5-7 different vertical unique blocks that add to the overall value of the page - this is important, because these are the pages we are truly trying to rank, and if they don’t have enough good unique information on them, they won’t rank. Ensure they are as varied as possible by using templates

Ensure the pages are split by service, so no two service landing page should look the same (even if the service + location page do look the same)

Make sure the colors are contrasting and not white on white or black on black at any point

The content of those pages should be landing pages for the service itself, created from a template that you have built, using the images, and the other information you know or can interpret from what you’ve been given.

Have a good looking contact us page with the <contact_details> on it

Ensure to create a phenomenal modern homepage for the website using the images and information about services to make a modular, mobilefriendly (it must not scroll horizontally on mobile) homepage

<service_information>

renting a Rolls royce, Ghost 6.6
Rent a luxury car with a driver service (autista)

<service_information>

<services>
Birthdays 
Weddings
Private Parties
</services>

<languages>
Italian
British English
</languages>


<locations>
Region of Campania - Italy (should be a separate page)
region,city
Province of Avellino,Avellino
Province of Avellino,Ariano Irpino
Province of Avellino,Montoro
Province of Benevento,Benevento
Province of Benevento,Montesarchio
Province of Benevento,San Giorgio del Sannio
Province of Caserta,Caserta
Province of Caserta,Aversa
Province of Caserta,Marcianise
Province of Salerno,Salerno
Province of Salerno,Cava de' Tirreni
Province of Salerno,Battipaglia
Metropolitan City of Naples,Naples
Metropolitan City of Naples,Giugliano in Campania
Metropolitan City of Naples,Torre del Greco
</locations>


<contact_details>


</contact_details>



Use Next js 14.2.23 - these were my install settings:
Create icons and svgs as you’re going - start with something simple
Do not use src directory
Implement ISR so the website can be built again quickly and easily
Use NextJS, and tailwind to make a unique beautiful modern modular website with 5-7 unique vertical blocks per page (more on the homepage)
Be very careful and wary of typescript errors
Make sure you are generatingStaticParams - and not confusing dynamic generation and static generation, 
Maximise build efficiency, speed, and complexity and modular nature of any pages which are generated for  SEO
Ensure to implement all slugs etc programmatically, and never create an index page link without creating the index page itself

You must be as detailed as possible with your SEO, abusing the fact that Google is very likely to rank pages that have exact phrase matches to keywords, for example “What is the meaning and Origin of X name” for my baby name website, which helps me rank for that question across all of the names in my database (which is 88k names) with a total of 100k pages, you can see how index pages, and then individual pages of that page type can really start to create scale.

Be wary of these errors, don’t make these mistakes:

> roocode-rolls-royce@0.1.0 build
> next build


> Build error occurred
Error: Specified "i18n" cannot be used with "output: export". See more info here: https://nextjs.org/docs/messages/export-no-i18n
    at assignDefaults (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\server\config.js:271:19)
    at loadConfig (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\server\config.js:782:32)
    at async Span.traceAsyncFn (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\trace\trace.js:154:20)
    at async C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\build\index.js:374:28
    at async Span.traceAsyncFn (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\trace\trace.js:154:20)
    at async build (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\build\index.js:368:9)

incom@DESKTOP-PVU6U2O MINGW64 ~/roocode-rolls-royce (master)
$ npm run build

> roocode-rolls-royce@0.1.0 build
> next build

  ▲ Next.js 14.2.23


> Build error occurred
Error: You cannot use different slug names for the same dynamic path ('regionSlug' !== 'serviceSlug').
    at handleSlug (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\shared\lib\router\utils\sorted-routes.js:94:31)
    at UrlNode._insert (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\shared\lib\router\utils\sorted-routes.js:131:17)
    at UrlNode._insert (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\shared\lib\router\utils\sorted-routes.js:142:40)
    at UrlNode.insert (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\shared\lib\router\utils\sorted-routes.js:13:14)
    at C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\shared\lib\router\utils\sorted-routes.js:165:46
    at Array.forEach (<anonymous>)
    at getSortedRoutes (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\shared\lib\router\utils\sorted-routes.js:165:21)
    at C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\build\index.js:625:65
    at Span.traceFn (C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\trace\trace.js:147:20)
    at C:\Users\incom\roocode-rolls-royce\node_modules\next\dist\build\index.js:624:89

incom@DESKTOP-PVU6U2O MINGW64 ~/roocode-rolls-royce (master)
$ `

 ✓ Starting...
 ✓ Ready in 1261ms
(node:59788) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
 ○ Compiling / ...
 ✓ Compiled / in 2.1s (595 modules)
 GET / 200 in 2323ms
 ✓ Compiled in 178ms (254 modules)
 ○ Compiling /favicon.ico ...
 ✓ Compiled /favicon.ico in 930ms (354 modules)
 GET /favicon.ico 200 in 979ms
 ✓ Compiled /[lang] in 383ms (673 modules)
 ⨯ Error: Image Optimization using the default loader is not compatible with `{ output: 'export' }`.
  Possible solutions:
    - Remove `{ output: 'export' }` and run "next start" to run server mode including the Image Optimization API.
    - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.
  Read more: https://nextjs.org/docs/messages/export-image-api
digest: "3890843329"
 GET /en 500 in 775ms
 GET /favicon.ico 200 in 10ms
 GET / 200 in 75ms
 ⨯ Error: Image Optimization using the default loader is not compatible with `{ output: 'export' }`.
  Possible solutions:
    - Remove `{ output: 'export' }` and run "next start" to run server mode including the Image Optimization API.
    - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.
  Read more: https://nextjs.org/docs/messages/export-image-api
digest: "3890843329"
 GET /en 500 in 65ms

Example Output

Example output imageExample output imageExample output image

Join the Vibe Coder Community

Get weekly updates on new prompts, tools, and success stories to help monetize your AI development skills.

Reviews

No reviews yet. Be the first to review!

Leave a Review