• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

About config.json

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 1.8k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    finid
    wrote on last edited by finid
    #1

    I noticed that apart from the config.json file in the root of the NodeBB installation, that there's another one under the /public directory, which just has the following in it:

    {
        "relative_path": ""
    }
    

    What is the relationship between both config.json files and should the value for relative_path in both be the same?

    Since this is a dev issue, paging @baris, @julian and @psychobunny

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #2

    Way back in the 0.0.x era, we had two config files, one server and one client. We later moved almost all of it to /api/config (You can see this one's, here). For some reason or another, relative_path was kept in because it had to be there, but I wager that is not a necessity anymore, and we can probably move/remove it

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #3

    Yeah I don't think the public/config.json is used anymore but it is still being written by install.js so gotto remove it from there too.

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #4

    Bonus points if you write an upgrade script to delete /public/package.json too 😛

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development