{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3553","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3553/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3553/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3553/events","html_url":"https://github.com/nuxt/nuxt.js/issues/3553","id":342552341,"node_id":"MDU6SXNzdWUzNDI1NTIzNDE=","number":3553,"title":"static folder path problem","user":{"login":"franklion","id":10952687,"node_id":"MDQ6VXNlcjEwOTUyNjg3","avatar_url":"https://avatars0.githubusercontent.com/u/10952687?v=4","gravatar_id":"","url":"https://api.github.com/users/franklion","html_url":"https://github.com/franklion","followers_url":"https://api.github.com/users/franklion/followers","following_url":"https://api.github.com/users/franklion/following{/other_user}","gists_url":"https://api.github.com/users/franklion/gists{/gist_id}","starred_url":"https://api.github.com/users/franklion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franklion/subscriptions","organizations_url":"https://api.github.com/users/franklion/orgs","repos_url":"https://api.github.com/users/franklion/repos","events_url":"https://api.github.com/users/franklion/events{/privacy}","received_events_url":"https://api.github.com/users/franklion/received_events","type":"User","site_admin":false},"labels":[{"id":882702353,"node_id":"MDU6TGFiZWw4ODI3MDIzNTM=","url":"https://api.github.com/repos/nuxt/nuxt.js/labels/cmty:question","name":"cmty:question","color":"5af1ca","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-19T02:03:11Z","updated_at":"2018-07-19T14:45:06Z","closed_at":"2018-07-19T02:03:13Z","author_association":"NONE","body":"I have a problem with static folder path in the sub-domain.\r\nThe URL is `http://test.com.tw/2018/` on my website, and then I put generated files in the 2018 folder.\r\nBut when I execute \"npm run generate\", the index.html that can't find the image.\r\n\r\nSo I google some issue about this topic, I found one solution\r\nTo modify nuxt.config.js\r\n`\r\nrouter: {\r\n    base: \"/2018/\"\r\n}\r\n`\r\nThis method not only can transform the router path but also assets folder path. \r\nBUT It can't transform a static folder path, it's still served in the root path.\r\n\r\nFor example:\r\n`<img src=\"/logos/logo.png\">`\r\n\r\nI want this\r\n`<img src=\"/2018/logos/logo.png\">`\r\n\r\nCan Someone tell me how to modify nuxt.config.js?\r\n\r\nThanks: D\r\n\n\n<!--cmty--><!--cmty_prevent_hook-->\n<div align=\"right\"><sub><em>This question is available on <a href=\"https://cmty.app/nuxt\">Nuxt</a> community (<a href=\"https://cmty.app/nuxt/nuxt.js/issues/c7409\">#c7409</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/406301910","html_url":"https://github.com/nuxt/nuxt.js/issues/3553#issuecomment-406301910","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3553","id":406301910,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjMwMTkxMA==","user":{"login":"franklion","id":10952687,"node_id":"MDQ6VXNlcjEwOTUyNjg3","avatar_url":"https://avatars0.githubusercontent.com/u/10952687?v=4","gravatar_id":"","url":"https://api.github.com/users/franklion","html_url":"https://github.com/franklion","followers_url":"https://api.github.com/users/franklion/followers","following_url":"https://api.github.com/users/franklion/following{/other_user}","gists_url":"https://api.github.com/users/franklion/gists{/gist_id}","starred_url":"https://api.github.com/users/franklion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franklion/subscriptions","organizations_url":"https://api.github.com/users/franklion/orgs","repos_url":"https://api.github.com/users/franklion/repos","events_url":"https://api.github.com/users/franklion/events{/privacy}","received_events_url":"https://api.github.com/users/franklion/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T14:45:06Z","updated_at":"2018-07-19T14:45:06Z","author_association":"NONE","body":"ok!\n\n<!--cmty_prevent_hook-->"}}
{"actor":{"display_login":"franklion"}}