# Moved to Vercel and syntax highlighting broke

**URL:** <https://discourse.gohugo.io/t/moved-to-vercel-and-syntax-highlighting-broke/51981>\
**Category:** support\
**Created:** [October 16, 2024, 8:50am UTC](https://discourse.gohugo.io/t/moved-to-vercel-and-syntax-highlighting-broke/51981 "2024-10-16T08:50:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![derekjohnson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/derekjohnson/32/23105_2.png) [@derekjohnson](https://discourse.gohugo.io/u/derekjohnson)\
**Post date:** [October 16, 2024, 8:50am UTC](https://discourse.gohugo.io/t/moved-to-vercel-and-syntax-highlighting-broke/51981/1 "2024-10-16T08:50:16Z")

</div>

I moved my site from Netlify to Vercel and syntax highlighting is broken in 2 ways. One, it’s a different theme locally vs production now.

 ![Screenshot 2024-10-16 at 09.31.45](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/8/5/85d35dc3100319d57df003830eb101e3bbfa02d5.png)  
This is local, which I like more.

As a new user I can only add one image here so this is what it looks like on the live site [Imgur: The magic of the Internet](https://imgur.com/a/Kfy95AJ).

Secondly one random code block is putting it on the production page as raw text, including the code fences.

Locally it looks like this a regular code block but on live site it’s this abomination: [Imgur: The magic of the Internet](https://imgur.com/a/dF8ht1f)

In the markup file it is the same as other code blocks, so a bit baffling.

My config file:

```auto
baseURL: /
disablePathToLower: false
languageCode: en-us
title: My site name
Paginate: 10
pygmentsCodeFences: true
pygmentsUseClasses: false
params:
  description: My site description.
markup:
  highlight:
    anchorLineNos: false
    codeFences: true
    guessSyntax: false
    hl_Lines: ""
    lineAnchors: ""
    lineNoStart: 1
    lineNos: false
    lineNumbersInTable: true
    noClasses: true
    style: dracula
    tabWidth: 2
  goldmark:
    renderer:
      unsafe: true
preserveTaxonomyNames: true

```

Hugo version locally is hugo v0.84.0.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [October 16, 2024, 9:12am UTC](https://discourse.gohugo.io/t/moved-to-vercel-and-syntax-highlighting-broke/51981/2 "2024-10-16T09:12:47Z")

</div>

> [@derekjohnson](#):
>
> Hugo version locally is hugo v0.84.0.

And on Vercel?

---

<div class="post-metadata">

**Author:** ![derekjohnson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/derekjohnson/32/23105_2.png) [@derekjohnson](https://discourse.gohugo.io/u/derekjohnson)\
**Post date:** [October 16, 2024, 9:39am UTC](https://discourse.gohugo.io/t/moved-to-vercel-and-syntax-highlighting-broke/51981/3 "2024-10-16T09:39:10Z")

</div>

Ah, didn’t know it needed specified there. Thanks, got it fixed.
