Giter Site home page Giter Site logo

Multisite setup about craft-twigpack HOT 6 CLOSED

nystudio107 avatar nystudio107 commented on May 18, 2024
Multisite setup

from craft-twigpack.

Comments (6)

puck3000 avatar puck3000 commented on May 18, 2024 2

Care to share the relevant parts of your general.php and twigpack settings? I seem to be missing something… 

from craft-twigpack.

FreakyFlu avatar FreakyFlu commented on May 18, 2024 1

what was the solution here? Facing the same issue

from craft-twigpack.

dGilli avatar dGilli commented on May 18, 2024 1

I got it to work just as Andrew describes in #24.

from craft-twigpack.

umkasanki avatar umkasanki commented on May 18, 2024 1

guys, avoid using urls in 'manifestPath', this may not work on some servers.

andrew.welchYesterday at 7:10 PM
'manifestPath' => getenv('BASE_URL') . '/build/',
should be a file system path like maybe:
'manifestPath' => '@webroot/build/',
or something (depending on your setup)

working multilangual config:

'server' => [
	'manifestPath' => '@root/web/build/', // eg '/opt/approot/current/web/build/',
	'publicPath' => getenv('BASE_URL') . '/', // eg 'https://site.com/'
],

from craft-twigpack.

fthues avatar fthues commented on May 18, 2024

Same here. Did you find a solution, @dGilli ?

from craft-twigpack.

kristiansp avatar kristiansp commented on May 18, 2024

@puck3000 I've just been grappling with this too, and finally found a solution that works for me, at least. Basically setting the server config to absolute paths with environmental variables:

NB! This assumes that your BASE_URL ends with a /, as I just discovered when deploying this to server.

        // Public server config
        'server' => [
            'manifestPath' => getenv('BASE_URL') . 'dist/',
            'publicPath' => getenv('BASE_URL'),
        ],

from craft-twigpack.

Related Issues (20)

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.